If the y axis values are same then the lines are not visible on the chart and the labels are also not visible on the chart. Can you draw the lines on the middle of the chart to get more visible?
async initTrack() {
const { wasmContext, sciChartSurface } = await SciChartSurface.create(
"chart" + this.element
);
sciChartSurface.xAxes.add(
new NumericAxis(wasmContext, { axisAlignment: EAxisAlignment.Top })
);
sciChartSurface.yAxes.add(
new NumericAxis(wasmContext, {
axisAlignment: EAxisAlignment.Left
})
);
const dataSeries = new XyDataSeries(wasmContext);
for (let i = 0; i <= 1000; i++) {
dataSeries.append(i, 10);
}
const rendSeries = new FastLineRenderableSeries(wasmContext, {
dataSeries: dataSeries,
strokeThickness: 1,
stroke: "red"
});
sciChartSurface.renderableSeries.add(rendSeries);
sciChartSurface.chartModifiers.add(cursorModifier);
return { wasmContext, sciChartSurface };
}
- Arun Surendran asked 4 years ago
- last edited 4 years ago
- You must login to post comments
The issue is resolved in v1.2.1451
The problem happened for FastLineRenderableSeries with related dataSeries having the same yValues for each datapoint.
- Ivan Gasyuk answered 4 years ago
- last edited 4 years ago
- Thanks Ivan.. it’s working fine now..
- You must login to post comments
Please login first to submit.