Modifying the plotly chart label (chart name, x and y axis label)
nana123652 opened this issue · 1 comments
nana123652 commented
Hi, thank you for the library; it's really awesome.
- 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?
- 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?
vinitgala commented
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}
/>