Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.