[CHARTS] rename DataV into DataAxis

parent 480b3a61
...@@ -8,7 +8,7 @@ type DataN = ...@@ -8,7 +8,7 @@ type DataN =
, textStyle :: TextStyle , textStyle :: TextStyle
} }
type DataV = type DataAxis =
{ value :: String { value :: String
, 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, DataV) import Gargantext.Components.Charts.Options.Data (DataN, 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)
...@@ -152,7 +152,7 @@ xAxis' xs = xAxis ...@@ -152,7 +152,7 @@ xAxis' xs = xAxis
, show: length xs /= 0 , show: length xs /= 0
} }
where where
xData :: Array String -> Array DataV xData :: Array String -> Array DataAxis
xData = map (\x -> {value : x, textStyle : textStyle'}) xData = map (\x -> {value : x, textStyle : textStyle'})
-- TODO try to use Optional -- TODO try to use Optional
......
...@@ -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, DataV) import Gargantext.Components.Charts.Options.Data (DataN, 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)
...@@ -132,7 +132,7 @@ type AxisTick = ...@@ -132,7 +132,7 @@ type AxisTick =
data XAxis data XAxis
type XAxisOptional = type XAxisOptional =
( "data" :: Array DataV ( "data" :: Array DataAxis
, "type" :: String , "type" :: String
, axisTick :: AxisTick , axisTick :: AxisTick
, name :: String , name :: String
......
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