Ask Your Question
2

How to make the line visible in a React Apexcharts Line Chart?

asked 2022-03-22 11:00:00 +0000

qstack gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2021-07-11 19:00:00 +0000

pufferfish gravatar image

To make the line visible in a React ApexCharts Line Chart, you need to set the stroke and strokeWidth properties in the series object as follows:

series: [{
  name: 'Line 1',
  data: [30, 40, 35, 50, 49, 60, 70, 91, 125],
  stroke: '#008000', // set the color of the line
  strokeWidth: 2 // set the width of the line
}]

Here, stroke sets the color of the line and strokeWidth sets the width of the line. You can set these properties according to your preference.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-03-22 11:00:00 +0000

Seen: 9 times

Last updated: Jul 11 '21