score:2
About the use of Html.Raw
and the easy solution:
Change your function to
public static HtmlString DisplayChart(this HtmlHelper helper, ...)
{
...
return new HtmlString(result);
}
You then may use @Html.DisplayChart(...)
in your razor views.
Also, please make sure that options.DivName
, options.Title
, options.SubTitle
etc. are properly escaped - a title like Everybody's favorite chart will break the output.
Source: stackoverflow.com
Related Query
- How to elegantly plot charts in ASP.NET MVC 3 using Highcharts?
- Highcharts Highstock How to Plot OHLC and Line Charts from One Set of Embedded CSV Data Using Series Map Tools?
- How to plot line in highcharts on charts click event?
- How to get a cubical plot using highcharts 3D scatter chart?
- How to show multiple pie charts using highcharts
- How to make multiple charts using highcharts in a loop?
- How to include highcharts motion plugin for bubble plot using R wrapper?
- How do I plot the x axis line using Highcharts when pegged at 0?
- how to render multiple line charts - highcharts on same page using highcharts react wrapper - highcharts-react-offical
- HTML table as data source for highstock charts using highcharts
- How to create a drilleable bar graph in jsp page using open source charts API
- How can I get proper object through loop using javascript for Bubble Charts of Highcharts
- How to scrape data from Highcharts charts using selenium and python?
- How to use Highcharts regression plugin to plot a trend line using angular 8 wrapper
- How to remove plot gridlines using Highcharts in R
- How to create charts like below using highcharts in angular
- Align second scatter series to the side similar to how column and bar charts do using HighCharts
- How to update the HighCharts title using drill-up when there are multiple charts on same page?
- ASP NET MVC Highcharts null pointer when adding series
- How could we plot graphical representation using High Charts where one x-axis value have multiple y-axis value
- How can I plot regions using HighCharts GeoMaps?
- How do I set multiple unique charts in their own DIVs using an AngularJS directive and Highcharts
- How to create a column range chart in Highcharts using range and navigator functions?
- How to display the value instead of percentage in a pie chart using jquery Highcharts
- How do I dynamically change a data point in Highcharts using JavaScript
- Javascript Highcharts v3.0.5 - How to hide Y Axis Title when using multiple Y Axis
- How to convert datetime string to UTC to plot points on Highcharts
- How to convert datetime string to UTC to plot points on Highcharts
- Highcharts padding between plot and graph, how to remove?
- how to get svg of highcharts using div id?
More Query from same tag
- Highcharts: Show navigator range in subtitle
- Enable rangeSelector buttons for asyncLoading without navigator enabled
- Highcharts polar chart - zero at centre
- HighCharts render chart already zoomed
- Text on SVG circle
- How to draw single line graph using Highchart bullet graph?
- Highchart inner donut name as header for outer donut tooltip
- Strange behavior with highcharts when using "column" type and multiple datetime series
- Overlap data on spline chart in Highcharts
- hightcharts mouse tracking color
- why my label formatter is not working as expected in highcharts
- Aligning the text in Legend in Highcharts
- child_process.execFile is not working with phantomjs and highcharts-convert.js
- Highchart: show seconday y-axis tick positions 0 to 12
- How to set a static minimum value for axes in Highcharts
- Allow text input (write-back) from highchart tooltip
- Highcharts variable threshold
- How can i make my gnatt highcharts tooltip in this shape
- Add URL to Pie-Donut Highchart
- Hightchart map pie : clic and hide specific pie
- Highcharts.js - Switch label axis and hiding legend
- How to display months in x axis labels in highcharts
- Complicated multidimensional array to use in highchart series
- Highstocks - How to change the default Zoom
- How to show 12AM and 12PM on x-axis using highcharts library
- How to listenTo afterSetExtremes event in Highcharts from Backbone
- jQuery initially not loading in IE9 quirks mode
- put the highchart legend to the bottom of the chart and horizontally centered
- How to transform dict in list with JavaScript to return in Highcharts
- Highcharts throwing container not found error but the container exists