plotly / react-pivottable

React-based drag'n'drop pivot table with Plotly.js charts
https://react-pivottable.js.org/
MIT License
993 stars 254 forks source link

Adding link to values #158

Open dividedbyzero323 opened 1 year ago

dividedbyzero323 commented 1 year ago

I want to add link to specific column to my array. My json array is [ { "TaskID": "161114683317", "Client": "Test" }, { "TaskID": "161114683317", "Client": "Test" } ]

If I try adding a tag while creating array like this: "TaskID": "<a href='http://localhost:3000/task_details/NDM0NzY='>161114683317</a>"

it doesn't render html this print as it received from response.

This is my config for pivot const pivotPresets = { rendererName, aggregatorName, plotlyOptions: {width: 900, height: 500}, plotlyConfig: {}, rendererOptions: { } } And UI <PivotTableUI data={data} onChange={(s) => { setPivotTableUIConfig(s) setdata(s) }} unusedOrientationCutoff={Infinity} {...pivotPresets} renderers={Object.assign({}, TableRenderers, PlotlyRenderers)} {...pivotTableUIConfig} />

Please help what I am missing in this.