plotly/react-pivottable

Modifying the plotly chart label (chart name, x and y axis label)

nana123652 opened this issue · 1 comments

Hi, thank you for the library; it's really awesome.

  1. In regards to the pivotable.js chart with plotly, what will be the way to modify the chart label like the chart name, and the x and y-axis label?
  2. Also my chart labels only with the chart name and axis details show when I click on the legend? Would you know the root cause?

You can achieve it by below code

<PivotTable
	data={data}
	plotlyOptions={{
		title: 'Chart Title You Want', // Title
		xaxis: { title: 'X Axis Label' }, // X-Axis
		yaxis: { title: 'Y Axis Label' } // X-Axis
	}}
	{...PivotData}
/>