fusioncharts / react-native-fusioncharts

Simple and Lightweight React Native component for FusionCharts JavaScript Charting Library
https://fusioncharts.github.io/react-native-fusioncharts
MIT License
80 stars 36 forks source link

I want to show msline chart without categories, is it possible. Its not woking ? #125

Closed AmeyKhoje closed 3 years ago

AmeyKhoje commented 3 years ago

const chartConfig = { type: 'msline', width: Dimensions.get('window').width, // Width of the chart height: 400, dataFormat: 'json', dataSource: { chart: { caption: 'Historical Temperature Data', subCaption: '', xAxisName: null, yAxisName: "Temperature in deg.C", numberSuffix: '', theme: 'fusion', showXAxisValues: true, rotateXAxisName: 1, // showYAxisLine: true, plottooltext: '$label, $value deg.C', tooltipBgColor: 'rgba(203, 0, 0, 0,1)', tooltipBorderColor: ColorPalette.Grey, showTooltipShadow: true, tooltipColor: ColorPalette.White, tooltipbgalpha: '70', tooltipBorderRadius: '5', tooltipBorderThickness: '0', tooltipPadding: '8', showValues: true, maxBarHeight: 20, showXAxisLine: true }, categories: [ { category: [] } ], dataSet: chartData }

Here my chartconfig. Please help me how to render chart without categories. ?

AyanBhadury commented 3 years ago

@AmeyKhoje :

As per your given requirement, the categories cannot be removed from a msline line chart as the x-axis labels are dependent upon the categories. If you don't want categories, we would suggest using a single series line chart, where you can set labels in the data object. Kindly note that multi-series data plotting will not be possible using a single series line chart.

AmeyKhoje commented 3 years ago

Thank you