Commit 20a3ce45 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[ERGO] invert ASC&DESC text in columns. Remove y axis name in charts.

parent 083cbffc
...@@ -143,7 +143,7 @@ yAxis' :: { position :: String ...@@ -143,7 +143,7 @@ yAxis' :: { position :: String
} -> YAxis } -> YAxis
yAxis' {position, show, min} = yAxis yAxis' {position, show, min} = yAxis
{ "type": "value" { "type": "value"
, name: "data" , name: ""
, min: min , min: min
, axisLabel: {formatter: "{value}"} , axisLabel: {formatter: "{value}"}
, position , position
......
...@@ -153,8 +153,8 @@ tableSpec = simpleSpec performAction render ...@@ -153,8 +153,8 @@ tableSpec = simpleSpec performAction render
cs :: Array ReactElement cs :: Array ReactElement
cs = cs =
case currentOrderBy of case currentOrderBy of
Just (ASC d) | c == d -> [lnk (Just (DESC c)) "ASC ", lnk Nothing (columnName c)] Just (ASC d) | c == d -> [lnk (Just (DESC c)) "DESC ", lnk Nothing (columnName c)]
Just (DESC d) | c == d -> [lnk (Just (ASC c)) "DESC ", lnk Nothing (columnName c)] Just (DESC d) | c == d -> [lnk (Just (ASC c)) "ASC ", lnk Nothing (columnName c)]
_ -> [lnk (Just (ASC c)) (columnName c)] _ -> [lnk (Just (ASC c)) (columnName c)]
render :: Render State Props Action render :: Render State Props Action
......
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