score:0
yes you can do it in this way.
have a method something like
generatechart(data){
//all the chart related stuff
}
in ajax call success call back make a call to the generatechart method with the data you have got
$.ajax({
type: "post",
url: "/chart/ajax_get_chart", // the url of the controller action method
data: null, // optional data
success: function(response) {
generatechart(response)
},
error : function(req, status, error) {
// do something with error
}
});
so fially the data in the model, ajax call in the controller and the geratechart will give you the view.
hope this will help.
Source: stackoverflow.com
Related Query
- How to hardcode chart data in my Model then have my Controller pull it from there to display it. Using Highcharts
- How to remove sliced line from pie high chart if there there is only one object in data
- How to extract the data from highstock chart
- How to make a chart with highcharts, load data from API
- How to create pie chart with only 1 series data and have background be a circle
- How to set minutes as units in Highstock chart using data from CSV
- How can I reveal my chart tooltip programatically when the tooltip combines data from multiple series? (sync charts)
- Is there a limit to how many data plots you can have on a highcharts graph
- how to add values from a database output to the data field in Line Chart of Chart.js
- How to use axios to fetch data from servlet and then crossfilter it and display via highcharts
- How to Plot chart from two different webform Submission data And Wand to Display annotated point
- How to have multiple highcharts with different series data in vuejs without repeating code
- Highcharts how to pass data from server into chart
- how do you call function to pull data automaticall to chart in highcharts
- How to re-render a graph at a given interval that retrieves data from a controller in Rails?
- how to pull json data from a server/url and set equal to a variable?
- How To Show Tooltip In Sparkline Chart From Code
- how to make chart real time with 2 line and get data from php with highcharts
- Is there a specific way to add data points from fetch() after a chart has been built?
- How to update highcharts.js chart on select change using data from csv file(s)?
- How to send data from controller which is acceptable format to Highstock?
- Highchart, How to resize auto if there is a lot of data, then scale accordingly to make all the data visible
- How to display data coming from the controller as collection in a ViewData dynamically Highcharts
- How to render Gantt Highchart from data source
- I have no direct access to code but wonder if I can append my chart data points to a log file
- How to create column-range chart from data of a HTML table?
- how to get additional information by clicking a data point on bubble chart from data
- How can I pull only specific columns \ cells from csv in <pre> tag, into highcharts pie chart
- Highstock - How to add point if I have different data on main chart and navigator
- How to draw a chart from one array of data and make labels on the chart from another array of data? Highcharts v.4.0.4
More Query from same tag
- How to correspond tooltip title with the legends at the bottom in Highcharts?
- HighCharts does not contain a constructor that takes 1 argument in ASP.Net MVC C#
- How to draw connectors for venn diagram chart in Highcharts?
- Highcharts column chart. Sometimes unusable 1px stacked columns. Sometimes usable side by side columns
- Variable in valueSuffix?
- The chartoptions in highcharts are not getting updated from function call in ngoninit
- How to add another series into my highchart
- how to set Navigator label formatter in highcharts
- Handling axis scale change when a legend item is clicked & hidden
- Highcharts - stacked column - order series index dynamically for each category
- highchart with angular and ionic framework error
- How do you show grid lines for both x axis and y axis in highchart?
- Render SVG images on each point of gantt chart in highcharts
- Javascript with AJAX inside another function
- Highcharts errorbar with corsshairs
- Graphs backround on Iexplorer after Deploying it on the server
- Is it possible to insert a break in the high charts legend?
- Highcharts : How to flag the local maxima on a dynamic graph drawn using HighChart
- How can I adapt a Highcharts graph to a responsive view
- Highcharts + Highmaps module not working
- how to remove an extra series in highchart
- How to hide grid line protrusion in bar chart
- Unable to attach a highstock to a div
- Data label position
- Integrating Ember bindings with highcharts
- Using the VU Guage: add the numeric value below needle
- How to get bar id in react highcharts?
- How can I show the label next to the bar in r highcharter?
- Can we show Y-Axis value of Chart as String value in highcharts?
- How to show only one pair of linked Highcharts series at a time