on 2024 Oct 09 9:02 AM
Hi,
how can i change measure in dynamic reference line with api?
is it possibile?
Thanks
// Assuming you have a reference to your visualization
const viz = /* your visualization reference */;
const newMeasure = 'SUM(Sales)'; // Example of the new measure
// Update the reference line
viz.setReferenceLine({
measure: newMeasure,
label: 'Updated Sales Reference',
lineType: 'dashed',
color: '#FF5733',
});
// Refresh the visualization to apply changes
viz.refresh();
Note: The newMeasure and other parameters according to your needs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
68 | |
10 | |
10 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.