score:1
Wergeld's answer is correct,but I've found another solution.
We can extend YAxisTitle using inheritance and add property UseHtml.
public class YAxisTitleExtend : YAxisTitle
{
public bool? UseHTML { get; set; }
}
And using YAxisTitleExtend instead of YAxisTitle.
If another not explicitly properties have appeared,we can simply add theirs to extend class.
score:1
Looking at the API docs for HighCharts the xAxis
and yAxis
titles do not have the property to use HTML. However, it is still present:
yAxis: {
title: {
text: 'СН<SUB>3</SUB>СНО',
useHTML: true,
style: {
color: 'red'
}
}
}
The DotNet.Highcharts API only exposes items that are in the HighCharts API explicitly. This is one of the reasons we stopped using it. You could add an event in the chart.events.load
section to set the axis title useHTML
property:
chart: {
events: {
load: function (event) {
this.yAxis[0].setTitle({
useHTML: true,
});
}
}
},
yAxis: {
title: {
text: 'СН<SUB>3</SUB>СНО'
}
}
Live demo of using load
event.
Source: stackoverflow.com
Related Query
- UseHTML property in XAxisTitle or YAxisTitle
- Strange character in the Highstock source code
- SyntaxError: JSON.parse: expected property name or '}' while using highcharts
- R Highcharter Sankey nodes column property trouble
- Highcharts.js will not render the chart, it says error "Cannot read property 'series' of undefined"
- Optimize JavaScript DrillDown code
- Highcharts: show stack total in shared tooltip, via footerFormat property
- highcharts-angular : Cannot read property 'chart' of undefined
- Uncaught TypeError: Cannot read property 'mouseIsDown' of undefined
- Highcharts: Cannot read property 'parts/Globals.js' of undefined
- Replacing highcharts.each in my code as it is being deprecated
- ERROR TypeError: Cannot set property 'proceed' of undefined
- Highcharts cannot read property 'series' of undefined
- Using PhantomJS to create HighCharts grahps server side for use in PDF creation (PHP) - results in exit code 11 from PHPs exec();
- Code works on fiddle but not when I do /show
- Highcharts - Global configuration with common code and unique data & Headings
- ERROR TypeError: Cannot read property '0' of undefined in angular-highcharts
- JavaScript code inside TypeScript file .ts not working
- Error: Template parse errors: Can't bind to 'options' since it isn't a known property of 'chart'
- allowOverlap property for Highcharts JS v3.0.10
- Cannot read property 'addEvent' of undefined
- Issues with xAxis labels and useHTML #1
- How do you set the text-overflow property of a highcharts-legend-item to ellipsis in styled mode?
- rerender view when model property change in EmberJS
- Uncaught TypeError: Cannot read property 'chart' of undefined in highcharts
- HighCharts Stock Chart error code 18
- Getting the complete XML source out of an XML DOM object
- Is there any way to assign "Alt" property while using Highcharts
- Highmaps: what is the code for a county?
- Getting error 'Cannot read property 'document' of undefined' while importing exporting.js (to export highchart charts)
More Query from same tag
- How to use custom JSON (not GeoJSON) with Highcharts map?
- How to change the palette colors of a highcharter column plot which depends on a variable?
- Highcharts displays series names but missing data points from json source
- Change highcharts axis value based on User Selection
- How to create overlapping bar charts in angular js?
- Drill Down (Highcharts) not working with dynamic data in Angular
- HighCharts onClick get column data on Stacked Column Chart
- How can I add a background to a pattern in Highcharts?
- How to properly import HighCharts with Backbone-boilerplate in an ECMAScript 2015 way?
- What is the solution for Highcharts hover
- Highcharts x-axis label not corresponding with value in tooltip
- HighCharts - applying a formatting function over plot options
- Sorting data from database, to use in chart. PHP
- how to auto create pdf using highchart graphs
- Efficiently detect missing dates in array and inject a null (highcharts and jquery)
- change data in highchart on changing selection from dropdown
- Highcharts: only show part of a map
- Highcharts datalabels getting scrambled on drilldown
- How to manipulate shiny server response with javascript
- Highcharts - x-axis date interval data values count must be 12
- How to push Json data to line chart function
- Left-align y-axis title with labels in Highcharts
- How do I attach a click event to the hcmap function within Highcharter library within R shiny?
- How to make yAxis stackLabels under yAxis in Highcharts?
- How to display navigator under area type highchart?
- Highcharts chartWidth no longer works with chart.getSVG()
- Minimise "Forced reflow"
- Click child in sunburst chart, drilldown into parent element
- How to place x axis labels on top of horizontal bar chart
- Highmaps: how to disable map zoom by mouse scroll