Relative Content

Tag Archive for lightningchart

How to Restrict Axis Scrolling Beyond Specific Values in LightningChartJS?

I am working with LightningChartJS in a React application and am trying to limit the y-axis scrolling range so that the chart does not allow scrolling above or below specified values. I have already checked a similar solution here: Limit scrollable range in LightningChartJS and attempted to apply but without success.

How to position text elements relative to LightningChartJS in a vertical layout?

I’m working with LightningChartJS and facing a layout challenge. I have two text labels, “Hello” and “World”, that need to be positioned vertically underneath a chart. Specifically, I want the “Hello” label to be positioned at x = -2 (or aligned to the left side of the chart) and the “World” label at x = 2 (or just to the right side of the chart). Additionally, I need the chart to allocate space for these labels similar to how space is allocated for the xAxis.

How to Display Vertical Text in LightningChartJS

I am working with LightningChartJS and need to display text vertically rather than horizontally. Below is the snippet I’ve used to display text horizontally, which is based on the documentation.