Reputation: 71
Using LightningchartJS, I want to add border around the chart.Is there any API available to achieve this? I did tried a lot of existing API's though.
Upvotes: 0
Views: 78
Reputation: 2620
You can edit the graph area border with Chart.setChartBackgroundStroke
const chart = lightningChart().ChartXY()
chart.setChartBackgroundStroke( new SolidLine( {
fillStyle: new SolidFill( { color: ColorRGBA( 200,0,0 ) } ),
thickness: 2
} ) )
Upvotes: 2