Forum Discussion
3 Replies
Replies have been turned off for this discussion
- rapidbisupportData Pipeline
Hi NeilHEvotix ,
The script here will set the value in the design panel (widget.style.axis.min) to auto ('') and set the chart axis minimum to 0 before it is rendered. It also adds a dummy series to the chart with a value of '0' to force the minimum for the control to 0. It then disables the tool tip for this dummy series.
widget.style.axis.min = '' widget.on('processresult', (w, args) => { args.result.yAxis[0].min = 0 args.result.yAxis[0].autoMin = 0 args.result.series.push({ "name": "dummy", "data": [ { "y": 0 } ], "yAxis": 0 }) }) widget.on('beforedatapointtooltip', (a, b) => { if (b.context.pointScope.series.name === 'dummy') { b.cancel = true } })
Let me know if this workaround works for you?
Thanks,
Daniel
RAPID BI
RAPID BI - Sisense Professional Services | Implementations | Custom Add-ons
- NeilHEvotixData Storage
Hi Daniel,
Thank you for responding.
I have tried the script, however when the chart is rendered it still has 2 at the centre.
Neil
- rapidbisupportData Pipeline
Hi Neil - What version of Sisense are you running?