Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
purescript-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Grégoire Locqueville
purescript-gargantext
Commits
d752ee6f
Unverified
Commit
d752ee6f
authored
Mar 19, 2019
by
Nicolas Pouillard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CHARTS] rename DataV into DataAxis
parent
480b3a61
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
Data.purs
src/Gargantext/Components/Charts/Options/Data.purs
+1
-1
ECharts.purs
src/Gargantext/Components/Charts/Options/ECharts.purs
+2
-2
Type.purs
src/Gargantext/Components/Charts/Options/Type.purs
+2
-2
No files found.
src/Gargantext/Components/Charts/Options/Data.purs
View file @
d752ee6f
...
@@ -8,7 +8,7 @@ type DataN =
...
@@ -8,7 +8,7 @@ type DataN =
, textStyle :: TextStyle
, textStyle :: TextStyle
}
}
type Data
V
=
type Data
Axis
=
{ value :: String
{ value :: String
, textStyle :: TextStyle
, textStyle :: TextStyle
}
}
...
...
src/Gargantext/Components/Charts/Options/ECharts.purs
View file @
d752ee6f
...
@@ -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, Data
V
)
import Gargantext.Components.Charts.Options.Data (DataN, DataS, Data
Axis
)
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 Data
V
xData :: Array String -> Array Data
Axis
xData = map (\x -> {value : x, textStyle : textStyle'})
xData = map (\x -> {value : x, textStyle : textStyle'})
-- TODO try to use Optional
-- TODO try to use Optional
...
...
src/Gargantext/Components/Charts/Options/Type.purs
View file @
d752ee6f
...
@@ -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, Data
V
)
import Gargantext.Components.Charts.Options.Data (DataN, Data
Axis
)
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 Data
V
( "data" :: Array Data
Axis
, "type" :: String
, "type" :: String
, axisTick :: AxisTick
, axisTick :: AxisTick
, name :: String
, name :: String
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment