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

[Cosmectics] bug histo chart: label of x axis.

parent c0c52b90
This diff is collapsed.
"use strict";
var ReactEcharts = require("echarts-for-react");
exports.eChartsClass = ReactEcharts.default;
exports.eChartsClass2 = ReactEcharts.default;
...@@ -213,63 +213,60 @@ seriesPie = seriesPieD1 ...@@ -213,63 +213,60 @@ seriesPie = seriesPieD1
textStyle2 :: TextStyle textStyle2 :: TextStyle
textStyle2 = textStyle2 =
{ { color: black
color: black , fontStyle: chartFontStyle italic
,fontStyle: chartFontStyle italic , fontWeight: chartFontWeight normal
,fontWeight: chartFontWeight normal , fontFamily: "sans-serif"
,fontFamily: "sans-serif" , fontSize: 11
,fontSize: 11 , align: relativePosition $ Relative RightPos
,align: relativePosition $ Relative RightPos , verticalAlign: relativePosition $ Relative Bottom
,verticalAlign: relativePosition $ Relative Bottom , lineHeight: percentPosition 0.0
,lineHeight: percentPosition 0.0 , width: percentPosition 100.0
,width: percentPosition 100.0 , height: percentPosition 100.0
,height: percentPosition 100.0 , textBorderColor: black
,textBorderColor: black , textBorderWidth: 0.0
,textBorderWidth: 0.0 , textShadowColor: black
,textShadowColor: black , textShadowBlur: black
,textShadowBlur: black , textShadowOffsetX: 0.0
,textShadowOffsetX: 0.0 , textShadowOffsetY: 0.0
,textShadowOffsetY: 0.0
} }
textStyle' :: TextStyle textStyle' :: TextStyle
textStyle' = textStyle' =
{ { color: black
color: black , fontStyle: chartFontStyle normal
,fontStyle: chartFontStyle normal , fontWeight: chartFontWeight normal
,fontWeight: chartFontWeight normal , fontFamily: "sans-serif"
,fontFamily: "sans-serif" , fontSize: 15
,fontSize: 15 , align: relativePosition $ Relative LeftPos
,align: relativePosition $ Relative LeftPos , verticalAlign: relativePosition $ Relative Top
,verticalAlign: relativePosition $ Relative Top , lineHeight: percentPosition 0.0
,lineHeight: percentPosition 0.0 , width: percentPosition 100.0
,width: percentPosition 100.0 , height: percentPosition 100.0
,height: percentPosition 100.0 , textBorderColor: black
,textBorderColor: black , textBorderWidth: 1.0
,textBorderWidth: 1.0 , textShadowColor: black
,textShadowColor: black , textShadowBlur: black
,textShadowBlur: black , textShadowOffsetX: 0.0
,textShadowOffsetX: 0.0 , textShadowOffsetY: 0.0
,textShadowOffsetY: 0.0
} }
textStyle :: TextStyle textStyle :: TextStyle
textStyle = textStyle =
{ { color: black
color: black , fontStyle: chartFontStyle normal
,fontStyle: chartFontStyle normal , fontWeight: chartFontWeight normal
,fontWeight: chartFontWeight normal , fontFamily: "sans-serif"
,fontFamily: "sans-serif" , fontSize: 15
,fontSize: 15 , align: relativePosition $ Relative LeftPos
,align: relativePosition $ Relative LeftPos , verticalAlign: relativePosition $ Relative Top
,verticalAlign: relativePosition $ Relative Top , lineHeight: percentPosition 0.0
,lineHeight: percentPosition 0.0 , width: percentPosition 100.0
,width: percentPosition 100.0 , height: percentPosition 100.0
,height: percentPosition 100.0 , textBorderColor: black
,textBorderColor: black , textBorderWidth: 1.0
,textBorderWidth: 0.0 , textShadowColor: black
,textShadowColor: black , textShadowBlur: black
,textShadowBlur: black , textShadowOffsetX: 0.0
,textShadowOffsetX: 0.0 , textShadowOffsetY: 0.0
,textShadowOffsetY: 0.0
} }
...@@ -63,7 +63,7 @@ chartOptions (HistoMetrics { dates: dates', count: count'}) = Options ...@@ -63,7 +63,7 @@ chartOptions (HistoMetrics { dates: dates', count: count'}) = Options
, subTitle : "Distribution of publications over time" , subTitle : "Distribution of publications over time"
, xAxis : xAxis' dates' , xAxis : xAxis' dates'
, yAxis : yAxis' { position: "left", show: true, min:0} , yAxis : yAxis' { position: "left", show: true, min:0}
, series : [seriesBarD1 {name: "Number of publication / year"} $ map (\n -> dataSerie {name: "", value: n, itemStyle : itemStyle {color:grey}}) count'] , series : [seriesBarD1 {name: "Number of publication / year"} $ map (\n -> dataSerie {value: n, itemStyle : itemStyle {color:grey}}) count']
, addZoom : true , addZoom : true
, tooltip : mkTooltip { formatter: templateFormatter "{b0}" } , tooltip : mkTooltip { formatter: templateFormatter "{b0}" }
} }
......
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