Suyash
Suyash

Reputation: 71

Can we add border around the chart?

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

Answers (1)

Snekw
Snekw

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

Related Questions