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
142
Issues
142
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
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
gargantext
purescript-gargantext
Commits
4e530b5d
Commit
4e530b5d
authored
May 15, 2018
by
Mael NICOLAS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
starting to refactor
parent
ff90786d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
10 deletions
+6
-10
Chart.purs
src/Chart.purs
+3
-7
Dashboard.purs
src/Dashboard.purs
+1
-1
DocView.purs
src/DocView.purs
+2
-2
No files found.
src/Chart.purs
View file @
4e530b5d
module Chart where
import Prelude
import Prelude
(($), (<<<), (<$>))
import CSS (Color, white)
import Data.Maybe (Maybe(..))
import Data.Boolean
import React as R
import React.DOM (p)
import React.DOM.Props (Props, className, unsafeFromPropsArray)
import React.DOM.Props (Props, unsafeFromPropsArray, unsafeMkProps)
import ReactDOM as RDOM
import Thermite (Render, Spec, createReactSpec, defaultPerformAction, simpleSpec)
-- eCharts Props
...
...
@@ -36,7 +32,7 @@ group = unsafeMkProps "group"
type EchartsProps eff =
{ className :: String,
style :: String, -- object,
style :: String, -- obje
alect-black-altdarkmincnaquadahherry-blossome
ct,
theme :: String,
group :: String,
option :: Option, -- PropTypes.object.isRequired,
...
...
@@ -445,7 +441,7 @@ series' =
{
name: "All"
, "type": "bar"
, "data": [201,
222, 223, 777, 244, 255, 555
, 879]
, "data": [201,
777
, 879]
}
opt :: Option
...
...
src/Dashboard.purs
View file @
4e530b5d
...
...
@@ -5,7 +5,7 @@ import Data.Unit (Unit)
import Prelude (pure, unit)
import React.DOM (text)
import Thermite (PerformAction, Render, Spec, simpleSpec)
import Chart
import Chart
s.ECharts
type State = Unit
...
...
src/DocView.purs
View file @
4e530b5d
...
...
@@ -2,7 +2,7 @@ module DocView where
import Data.Argonaut
import Chart (histogram, p'')
import Chart (histogram
2
, p'')
import Control.Monad.Aff (Aff, attempt)
import Control.Monad.Aff.Class (liftAff)
import Control.Monad.Cont.Trans (lift)
...
...
@@ -108,7 +108,7 @@ layoutDocview = simpleSpec performAction render
div [className "col-md-12"]
[ p''
, h3 [] [text "Chart Title"]
, histogram
, histogram
2
, p''
, br' []
, div [] [ b [] [text d.title]
...
...
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