score:7
Accepted answer
You are returning an array. The formatter
expects a string to be returned. It seems to print the separator commas from the array entries.
You have the code:
var s = [];
// ...
return s;
Instead you could do (JSFiddle):
var s = [];
// ...
return s.join('');
This just concatenates the array entries with no separator sign.
score:1
This is the default string separator for returning array.
tooltip: {
crosshairs: [true, true],
shared: true,
useHTML: true,
formatter: function() {
var s = [];
s.push('<table><tr><td style="text-align:right;" colspan="3"><b>' +
this.x + '</b></td></tr>');
$.each(this.points, function(i, point) {
s.push('<tr><td style="text-align: right;">'+
'<b><span style="color:'+point.series.color +'">\u25CF</span></b>'+
'</td>'+
'<td style="text-align: right;"><b>'+point.series.name +' : </b></td>'+
'<td><b>' + point.y+'</b></td>'+
'</tr>');
});
s.push('<tr><td style="text-align:right;" colspan="3"><b>تعداد خبر : ' +
this.points[0].point.NumberNews + '</b></td></tr></table>');
return s.join(''); //This will removed comma's, if you want to put an string separator just insert it inside the return//
}
},
Source: stackoverflow.com
Related Query
- Commas in tooltip of Highchart
- Format tooltip in highchart map for dynamic variables, some with commas and others with percents
- How to display highchart series line marker symbol from tooltip formatter?
- HighChart Shared Tooltip Number Formatting
- adapting text to highchart tooltip max width
- Adding new data to highchart tooltip
- highchart total in tooltip
- Scatter tooltip of highchart is not being displaying
- Border Styles for the Highchart tooltip
- Adding a custom tooltip to a bubble chart / highchart
- Highchart - tooltip for legends
- HighChart Tooltip Position can be changed?
- Highchart tooltip position to be fixed
- Tooltip covering bar in highchart
- Dynamically update tooltip date format highchart
- Display percentage on tooltip highchart Angular 2
- Highchart tooltip show nearest point
- Highchart / Highstock stack column chart show one series's tooltip at a time
- How to change Highchart tooltip font family
- how to pass datalabels along with data to show it in tooltip in highchart
- Highchart : Json Array For ToolTip
- Tooltip is not hidden after formatting in highchart
- Tooltip doesn't display on highchart graph
- How to edit tooltip in Highcharts C# code
- How to change tooltip of a column chart programmatically in highchart
- How to do In highchart tooltip display the first 100 characters and then say "See more .."?
- how to use highcharts tooltip formatter in python code
- Highchart tooltip & events from external function
- Highchart tooltip PointOptionsObject interface implementation
- highchart tooltip not follow mouse
More Query from same tag
- Highcharts Series from AJAX
- how do you create muliple charts with the same options but with different data
- How can I assign multiple series from my json data? Highcharts
- Is there a way to enable click and drag for a plotLine on a highchart?
- highcharts zoom series dissapeares
- How to set the x-axis to start at the bottom of the chart in highchart
- Highstocks - Use tickmarkPlacement "between" on datetime Axis (no categories)
- Highcharts - Position title under chart
- Display threshold line even if threshold value is higher than max y-axis value in HighStock
- Highcharts will not render if element in series data is empty
- Highchart manage state manually
- Java Script Type Error while adding Stock Chart to GWT SimplePanel
- Different interval for HighCharts
- dynamic chart with Highcharts using json
- How to extend X axis datetime in Highchart
- Highstock, error: Uncaught TypeError: w[(intermediate value)(intermediate value)(intermediate value)] is not a constructor
- How to web scraping Highcharts values?
- Django Chartit graph not displaying. Jquery issue?
- Performance issue with Firefox on Highcharts and Highstocks
- Is it possible to make all-custom point marker design in highstock?
- React prop gets overwritten when using highcharts?
- Line chart connectnulls but not all nulls
- Date becomes incorrect in the ALL view on Highstock chart?
- Asyncronously Load Panels using jQuery in ASP.NET application
- What means '404 2716' when trying to run JavaScript library with Django?
- how to draw charts with json file data in highcharts
- Highcharts : cross symbol with fillColor
- Highcharts ignore skipped dates
- jquery datatable to highcharts
- UIWebView download it's image content