react-native-highcharts
react-native-highcharts copied to clipboard
xAxis type:category, and categories broken?
Hello All,
This is when the XAxis labels are something different than time (seconds), For example when we have labels which could be anything ["jan", "feb", "march" ,...] In previous version of this code, for xAxis options we could do xAxis: { type:'category', categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
}
and the XAxis labels would be 'Jan', 'Feb' and so on.
Does this feature still work? It seems to be broken.
Any idea?
Thanks, Farshid
Just to be clear here. This symptom exists when the stock={true} is passed in as "true" to the <ChartView.....stock={true}> </ChartView>.
Solved:
chart: { zoomType: 'xy' }, xAxis: [ { categories: ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec" ], labels: { rotation: -45, style: { color: "#000" } } } ],