Chart.purs 662 Bytes
Newer Older
1 2 3 4 5 6 7 8
module Gargantext.Components.Nodes.Corpus.Chart where

import Reactix as R

import Gargantext.Components.Nodes.Corpus.Chart.Histo (histo)
import Gargantext.Components.Nodes.Corpus.Chart.Metrics (metrics)
import Gargantext.Components.Nodes.Corpus.Chart.Pie  (pie, bar)
import Gargantext.Components.Nodes.Corpus.Chart.Tree (tree)
9
import Gargantext.Components.Nodes.Corpus.Chart.Types (Path, Props)
10 11
import Gargantext.Types (ChartType(..))

12 13 14 15 16 17
getChartFunction :: ChartType -> (Record Props -> R.Element)
getChartFunction Histo = histo
getChartFunction ChartBar = bar
getChartFunction ChartPie = pie
getChartFunction Scatter = metrics
getChartFunction ChartTree = tree