Commit fe7ad566 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[CHART] Realistic legend.

parent d809d0c5
...@@ -378,7 +378,7 @@ ex1 = echarts ...@@ -378,7 +378,7 @@ ex1 = echarts
[ option [ option
[ tooltip [trigger "axis"] [ tooltip [trigger "axis"]
, grid [containLabel true] , grid [containLabel true]
, legend [data' ["data1", "data2", "data3"]] , legend [data' ["Query A", "Query B", "Query C"]]
, xAxis , xAxis
[ type' "category" [ type' "category"
, axisTick [alignWithLabel true] , axisTick [alignWithLabel true]
...@@ -408,22 +408,22 @@ dz2 = unsafeFromPropsArray ...@@ -408,22 +408,22 @@ dz2 = unsafeFromPropsArray
ya1 = unsafeFromPropsArray ya1 = unsafeFromPropsArray
[ type' "value" [ type' "value"
, name "Eur" , name "Publications (by year)"
, min 0 , min 0
, position "left" , position "left"
, axisLabel [formatter "{value} h"] , axisLabel [formatter "{value}"]
] ]
ya2 = unsafeFromPropsArray ya2 = unsafeFromPropsArray
[ type' "value" [ type' "value"
, name "Eur" , name "Score metric"
, min 0 , min 0
, position "right" , position "right"
, axisLabel [formatter "{value} Eur"] , axisLabel [formatter "{value}"]
] ]
sd1 = unsafeFromPropsArray sd1 = unsafeFromPropsArray
[ name "data1" [ name "Query A"
, type' "line" , type' "line"
, label [normal[showp true, position "top"]] , label [normal[showp true, position "top"]]
, lineStyle [ normal , lineStyle [ normal
...@@ -436,7 +436,7 @@ sd1 = unsafeFromPropsArray ...@@ -436,7 +436,7 @@ sd1 = unsafeFromPropsArray
] ]
sd2 = unsafeFromPropsArray sd2 = unsafeFromPropsArray
[ name "data2" [ name "Query B"
, type' "bar" , type' "bar"
, label [normal[showp true, position "top"]] , label [normal[showp true, position "top"]]
, yAxisIndex 1 , yAxisIndex 1
...@@ -444,7 +444,7 @@ sd2 = unsafeFromPropsArray ...@@ -444,7 +444,7 @@ sd2 = unsafeFromPropsArray
] ]
sd3 = unsafeFromPropsArray sd3 = unsafeFromPropsArray
[ name "data3" [ name "Query C"
, type' "bar" , type' "bar"
, label [normal[showp true, position "top"]] , label [normal[showp true, position "top"]]
, yAxisIndex 1 , yAxisIndex 1
......
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