Commit f027bd5e authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FIX] update chart

parent b932bb3e
...@@ -12,6 +12,7 @@ import Gargantext.Components.Charts.Options.Font (itemStyle, mkTooltip, template ...@@ -12,6 +12,7 @@ import Gargantext.Components.Charts.Options.Font (itemStyle, mkTooltip, template
import Gargantext.Components.Charts.Options.Series (seriesBarD1) import Gargantext.Components.Charts.Options.Series (seriesBarD1)
import Gargantext.Components.Nodes.Corpus.Chart.Common (metricsWithCacheLoadView) import Gargantext.Components.Nodes.Corpus.Chart.Common (metricsWithCacheLoadView)
import Gargantext.Components.Nodes.Corpus.Chart.Types (MetricsProps, Path, Props, ReloadPath) import Gargantext.Components.Nodes.Corpus.Chart.Types (MetricsProps, Path, Props, ReloadPath)
import Gargantext.Components.Nodes.Corpus.Chart.Utils as U
import Gargantext.Config.REST (AffRESTError) import Gargantext.Config.REST (AffRESTError)
import Gargantext.Hooks.Loader (HashedResponse(..)) import Gargantext.Hooks.Loader (HashedResponse(..))
import Gargantext.Prelude (class Eq, bind, map, pure, ($), (==)) import Gargantext.Prelude (class Eq, bind, map, pure, ($), (==))
...@@ -113,9 +114,8 @@ histoCpt = here.component "histo" cpt ...@@ -113,9 +114,8 @@ histoCpt = here.component "histo" cpt
loaded :: Record MetricsProps -> HistoMetrics -> R.Element loaded :: Record MetricsProps -> HistoMetrics -> R.Element
loaded p l = loaded p l =
H.div {} [ H.div {} [ U.reloadButton p.reload
{- U.reloadButton reload , U.chartUpdateButton { chartType: Histo, path:p.path, reload:p.reload, session:p.session }
, U.chartUpdateButton { chartType: Histo, path, reload, session } , chart $ chartOptions p l
, -} chart $ chartOptions p l ]
]
-- TODO: parametrize ngramsType above -- TODO: parametrize ngramsType above
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment