Hi,
Am using apex chart for daisply values but when i click for chart redirect to another page with parameter value.
Hi,
Am using apex chart for daisply values but when i click for chart redirect to another page with parameter value.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rajkiran SwainPosted Apr 20, 2023, 6:09 AM
Tuhin PaulPosted Apr 23, 2023, 2:44 AM
Here's a modified and complete version of the code:
This code creates a line chart using ApexCharts library and adds an event listener to redirect to another page when a data point is selected. This code first defines the chart options, including setting the chart type to line and adding an event listener for data point selection. The dataPointSelection event fires when a data point is clicked, and it receives three parameters: event, chartContext, and config. Inside the event listener function, we use config to get the selected data point's value and then redirect to another page by setting window.location.href. We pass the selected value as a query string parameter to the another-page.aspx page. The code creates a new ApexCharts instance with the specified options and renders the chart on the page by calling the render() method on the chart object.
raja nPosted Apr 20, 2023, 7:10 AM
@rajkiran thanks for your reply
am using apex chart (radialbar) but your code used return value is "undefined"