[{"datetime":"2017-04-13T09:07:00+08:00","temperature":87 }, {"datetime":"2017-04-13T10:07:00+08:00","temperature":87 }]|
Angular:
//Required module for tooltip render event. Note that, in the provided sample, we have referred all the chart modules, you can import the required modules alone
import { ITooltipRenderEventArgs } from '@syncfusion/ej2-ng-charts';
//Required module for formatting the values
import { Internationalization } from '@syncfusion/ej2-base';
public tooltipRender(args: ITooltipRenderEventArgs): void {
let intl: Internationalization = new Internationalization();
let formattedString: string = intl.formatDate(new Date(args.point.x), { skeleton: 'Hm' });
args.textCollections = formattedString;
};
Html file:
<ej-chart id= 'chartcontainer' (tooltipRender) = "tooltipRender($event)" >
< /ej-chart>
|
|
Angular:
//Required module for tooltip render event. Note that, in the provided sample, we have referred all the chart modules, you can import the required modules alone
import { ITooltipRenderEventArgs } from '@syncfusion/ej2-ng-charts';
//Required module for formatting the values
import { Internationalization } from '@syncfusion/ej2-base';
public tooltipRender(args: ITooltipRenderEventArgs): void {
let intl: Internationalization = new Internationalization();
let formattedString: string = intl.formatDate(new Date(args.point.x), { skeleton: 'Hm' });
args.textCollections = formattedString;
};
Html file:
<ej-chart id= 'chartcontainer' (tooltipRender) = "tooltipRender($event)" >
< /ej-chart>
|