Hi Jinyan Cao,
By default the chart would draw a line even if there are only zero values, however, in most cases it would not be clearly visible because of the PlotAreaAxis
. Here are a few suggestions that you may find appropriate for your scenario :
1. In case you are using AutoRange
, you could set a custom axis range, for example, from -1 to 1 with a Step
= 1 and then set the AxisY PlotAreaAxisVisibility
2. If you have a defined manual axis range, then simply collapsing the PlotAreaAxis
would work as well.
3. Another possible solution would be to increase the thickness of the Line series when there are only zero values in the chart.
All of these suggestions could be applied dynamically - while there are only zero values present in the chart. This way when there are other positive/negative values, the chart would work normally.
Hope this helps.
the Telerik team