[CHARTS] rename DataN into DataLegend

parent d752ee6f
...@@ -2,7 +2,7 @@ module Gargantext.Components.Charts.Options.Data where ...@@ -2,7 +2,7 @@ module Gargantext.Components.Charts.Options.Data where
import Gargantext.Components.Charts.Options.Font (TextStyle, Icon) import Gargantext.Components.Charts.Options.Font (TextStyle, Icon)
type DataN = type DataLegend =
{ name :: String { name :: String
, icon :: Icon , icon :: Icon
, textStyle :: TextStyle , textStyle :: TextStyle
......
...@@ -7,7 +7,7 @@ import CSS.Common (normal) ...@@ -7,7 +7,7 @@ import CSS.Common (normal)
import Data.Array (length) import Data.Array (length)
import Data.Maybe (Maybe(..)) import Data.Maybe (Maybe(..))
import Gargantext.Components.Charts.Options.Color (transparent, violet, black) import Gargantext.Components.Charts.Options.Color (transparent, violet, black)
import Gargantext.Components.Charts.Options.Data (DataN, DataS, DataAxis) import Gargantext.Components.Charts.Options.Data (DataLegend, DataS, DataAxis)
import Gargantext.Components.Charts.Options.Font (IconOptions(..), Shape(..), TextStyle, chartFontStyle, chartFontWeight, icon) import Gargantext.Components.Charts.Options.Font (IconOptions(..), Shape(..), TextStyle, chartFontStyle, chartFontWeight, icon)
import Gargantext.Components.Charts.Options.Legend (legendType, LegendMode(..), PlainOrScroll(..), selectedMode, Orientation(..), orient) import Gargantext.Components.Charts.Options.Legend (legendType, LegendMode(..), PlainOrScroll(..), selectedMode, Orientation(..), orient)
import Gargantext.Components.Charts.Options.Position (Align(..), LeftRelativePosition(..), TopRelativePosition(..), numberPosition, percentPosition, relativePosition) import Gargantext.Components.Charts.Options.Position (Align(..), LeftRelativePosition(..), TopRelativePosition(..), numberPosition, percentPosition, relativePosition)
...@@ -106,13 +106,13 @@ legend = ...@@ -106,13 +106,13 @@ legend =
, "data": [data1] , "data": [data1]
} }
data1 :: DataN data1 :: DataLegend
data1 = {name: "Map terms coverage", icon: icon $ Shape Circle, textStyle: textStyle'} data1 = {name: "Map terms coverage", icon: icon $ Shape Circle, textStyle: textStyle'}
data2 :: DataN data2 :: DataLegend
data2 = {name: "Favorites", icon: icon $ Shape Circle, textStyle: textStyle'} data2 = {name: "Favorites", icon: icon $ Shape Circle, textStyle: textStyle'}
data3 :: DataN data3 :: DataLegend
data3 = {name: "Test", icon: icon $ Shape Diamond, textStyle: textStyle'} data3 = {name: "Test", icon: icon $ Shape Diamond, textStyle: textStyle'}
......
...@@ -4,7 +4,7 @@ import Prelude ...@@ -4,7 +4,7 @@ import Prelude
import Data.Maybe (Maybe) import Data.Maybe (Maybe)
import Gargantext.Components.Charts.Options.Color (Color) import Gargantext.Components.Charts.Options.Color (Color)
import Gargantext.Components.Charts.Options.Data (DataN, DataAxis) import Gargantext.Components.Charts.Options.Data (DataLegend, DataAxis)
import Gargantext.Components.Charts.Options.Font (TextStyle) import Gargantext.Components.Charts.Options.Font (TextStyle)
import Gargantext.Components.Charts.Options.Legend (LegendType, Orient, SelectedMode) import Gargantext.Components.Charts.Options.Legend (LegendType, Orient, SelectedMode)
import Gargantext.Components.Charts.Options.Position (LeftRelativePosition, Position, TopRelativePosition) import Gargantext.Components.Charts.Options.Position (LeftRelativePosition, Position, TopRelativePosition)
...@@ -117,7 +117,7 @@ type Legend = ...@@ -117,7 +117,7 @@ type Legend =
, inactiveColor :: Color , inactiveColor :: Color
, selected :: Maybe String -- object , selected :: Maybe String -- object
, textStyle :: TextStyle , textStyle :: TextStyle
, "data" :: Array DataN , "data" :: Array DataLegend
} }
type Tooltip = type Tooltip =
......
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