score:15
You webserver will limit the maximum response size limit. You should refer to documentation on your web server of choice to see how best to increase that limit beyond whatever it is set to today.
The JsonResult class does have a property (maxJsonLength) you may also try changing
var jsonResult = Json(dataPlot, JsonRequestBehavior.AllowGet);
jsonResult.MaxJsonLength = int.MaxValue;
return jsonResult;
Possible configuration change
<configuration>
<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength="1000000" />
</webServices>
</scripting>
</system.web.extensions>
</configuration>
Most importantly - you may want to reconsider your call to limit or somehow partition the responses into more manageable chunks as a default response limit is fairly large and can take a long time to return (network latency)
Generally speaking it's usually not a good idea to increase your response size limit. But that is probably the problem you are experiencing.
score:0
MaxJsonLength: This helps to get or set the maximum JSON content length that you will send. The default value for this is 2097152 characters, that is equal to 4 MB of Unicode string data. You can even increase the size based if needed, for that you will get an idea later in this article
solutions:
protected override JsonResult Json(object data, string contentType,Encoding contentEncoding, JsonRequestBehavior behavior)
{
return new JsonResult()
{
Data = data,
ContentType = contentType,
ContentEncoding = contentEncoding,
JsonRequestBehavior = behavior,
MaxJsonLength = Int32.MaxValue
};
}
score:1
var jsonResult = Json(dataPlot, JsonRequestBehavior.AllowGet);
jsonResult.maxJsonLength = int.MaxValue;
return jsonResult;
This is a best way to crease data limit in post.
Source: stackoverflow.com
Related Query
- JSON data size limit
- HighCharts Bubble graph JSON as data source
- Highcharts displays series names but missing data points from json source
- Reload chart data via JSON with Highcharts
- JSON.parse: unexpected non-whitespace character after JSON data in javascript
- creating highchart with ajax json data
- Plot Highchart Gauge with JSON Data
- How to pass json data to highcharts series?
- HighChart Heatmap with JSON data
- Send JSON data to highcharts pie from asp.net MVC controller in C#
- Highcharts with JSON data and multiple series
- Formatting JSON data monthwise for HighCharts using MySQL
- Highcharts: How to load data from JSON to xAxis.categories and series.data?
- get json data from my controller in highcharts.js
- Highcharts Beta 3: Best Practice loading JSON data
- Highcharts - Global configuration with common code and unique data & Headings
- Highcharts C# To JSON - Structuring Series Data
- Incorrect JSON data format
- Formatting JSON Data with ColdFusion for HighCharts
- Rails collecting and rendering JSON data in to a Highcharts graph
- Highcharts and Json data
- Highcharts with ajax and json data what am i doing wrong?
- Highcharts bargraph from json data in angularJS
- Write JSON parser to format data for pie chart (HighCharts)
- Parsing JSON data for Highcharts
- How to show the json data in Pie chart HighChart?
- How to format my json data for stack column chart in HighCharts
- How can i get the json data with the specific between Year?
- JSON data with angular2-highcharts
- Plotting JSON data with angular2-highchart
More Query from same tag
- Highcharts with object array
- Highchart and HTMLCanvas
- How to prevent column overlap in Highcharts
- Highcharts - Is it possible to customize the bars in column range type?
- HighCharts - destroy before writing a new chart (to prevent memory leak)
- Highcharts manually setting legendItemClick event
- How do I rotate the legend in Highcharts?
- Highcharts unable to destroy labels
- How to export charts in multiple sizes with Highcharts?
- How to give plotlines text styles on opposite side instead of default
- Update data of existing Highstock graph using only JavaScript
- Highstock - SMA (Simple moving average) dataGrouping not working
- Workers for phantomJs fail to start in a Docker container
- Sample onLoad handler?
- PhantomJS - sending a POST from the cmd w/ Curl isn't working
- How to draw an allipse (oval) on a Highchart graph
- how to hide series data in combination high charts
- Highcharts: make y-axis extremes the same for two data series with different units
- Boost Enable/Disabled with update Method in Highcharts
- Highcharts: xAxis label above bar in horizontal bar charts
- Dynamical Update data Javascript Highchar
- Highchart in the loop showing only first chart data
- Highcharts - How to get horizontal error bars?
- Combining gantt chart and line chart using highchart
- Highcharts - mouse event in chart - e.Offset solution across browsers
- How to add comma in stacked column highchart in indian format?
- Highstock on load graph displays just one point
- highcharts always console error ablout bubble_compiled.js?
- Can highcharts heatmap zone pattenObjects respect colors applied by color axis?
- Plot heatmap from CSV file [Highcharts]