score:1
Accepted answer
you could replace the comma value with a dot value by using replace and parsing it into a float:
y: parsefloat(('1,5').replace(/\,/g, '.'))
score:1
hi i am not sure what is your aim if you would like see on tooltip than you set below code before initialize chart you can find internationalization
highcharts.setoptions({
lang: {
decimalpoint: ','
}
});
edited for working code
highcharts.setoptions({
lang: {
decimalpoint: ','
}
});
highcharts.chart('container', {
chart: {
plotbackgroundcolor: null,
plotborderwidth: null,
plotshadow: false,
type: 'pie'
},
title: {
text: 'browser market shares january, 2015 to may, 2015'
},
series: [{
name: 'brands',
data: [{
name: 'microsoft internet explorer',
y: parsefloat(('1,5').replace(/\,/g, '.'))
}, {
name: 'chrome',
y: parsefloat(('4').replace(/\,/g, '.'))
}]
}]
});
Source: stackoverflow.com
Related Query
- Use comma values as datapoints within a PieChart
- Using PhantomJS to create HighCharts grahps server side for use in PDF creation (PHP) - results in exit code 11 from PHPs exec();
- Use of DotNet HighCharts dll to make charts in code behind
- passing json values to highcharts from .net code behind
- How to map values within a data series to different y-axes?
- how to use highcharts tooltip formatter in python code
- How to use no-data-to-display within Highcharts-Vue wrapper
- Referencing array values within nested objects/arrays
- Is it possible to use null datapoints with a datetime x-axis?
- Conditions within highcharts code
- Strange character in the Highstock source code
- What's the code in Highcharts such that the bars (columns) in the same group use the same color?
- Use max yAxis when plotting boolean values
- AngularJS $apply sometimes doesn't trigger to update $scope values in the html tag within {{}}, when using the click event in hightchart.
- highcharts gauge use with negative values
- DotNet.HighCharts - PieChart by populating data by code
- Deleting last entered comma on PHP code
- use Highcharts Api to show multiples values
- Manipulate PHP array to group small values for use in Pie Chart
- use highchart as a template with different title and different values multiple times
- how to use external dropdown for zoom values in stock highcharts
- How to use .top() method in a crossfilter group with nested values
- Get Key names and Values names from JSON and use in Highcharts
- Display and use time values on Highcharts
- How to format a pandas dataframe for use with pandas-highcharts within Django
- Use HTML class as Highcharts table data source
- Javascript variable with Comma separated values not working in HighChart
- Use Node.js as data source for highcharts
- How to use jquery to access highcharts piechart plotOptions: pie : size parameter?
- Use django variable (array of elements from sqlite3 database) inside javascript embedded code
More Query from same tag
- Toggle flags on/off with a button in highcharts/highstock
- Ionic app doesn't show custom buttons from Highchart library
- Highcharts loaded via ajax, issue to dynamically create yAxis
- How can i get the json data with the specific between Year?
- HIghcharts, Selecting a second Point within the Point.select event
- Group SQL data by JSON arrays
- Disable week view in more then 3 months x axis (Highchart js)
- Cannot read property 'type' of undefined highcharts highstock
- Is it possible to hide the line & symbol next to Highcharts legend items?
- Can packed bubble while including Highcharts Gantt resource?
- Erro in ReactJS - Module not found: Can't resolve 'highcharts'
- how to assign date time to highchart with intervals and date start
- splitSeries error with packedbubble in Angular
- Highcharts C# To JSON - Structuring Series Data
- Highchart doesn't dispaly a datarange even if there is data
- Long array of small data points is rendered as a jagged line
- How to change the scale of an axis with HighChart
- Highcharts label format with tickPositioner in a datetime x Axis
- Getting {% load chartit %} on my browser. Charts are not loading using chartit
- Highcharts prevent xAxis Labels hidden
- How to format the xAxis of Highcharts
- How to avoid X axis to display decimal values
- Plotline (vertical line) in highcharts scatter chart
- combine and merge two array into set of arrays for Highchart Pie
- Highcharts - Highcharter in R - Getting Tooltip values from df rather than map
- Highcharts: Click to update column color --- need a mouseover?
- Highcharts JSON, chart not displaying
- How to set second yAxis scale according to data from first yAxis
- Highcharts Wind rose increase surface bar
- Disable legend item click in a Highchart defined as JSON