|
[ChartFeatures.cshtml]
<ejs-chart tooltipRender="tooltip">
</ejs-chart>
function tooltip(args) {
var intl = new ej.base.Internationalization();
//Formatted the text here, you can change this with respect to your scenario
var formattedString = intl.formatDate(new Date(args.point.x), { skeleton: 'Ehms' });
//Assigned the formatted string to text property
args.text = formattedString;
}
|
|
[ChartFeatures.cshtml]
@Html.EJS().Chart("container").TooltipRender("tooltip").Render()
function tooltip(args) {
var intl = new ej.base.Internationalization();
var formattedString = intl.formatDate(new Date(args.point.x), { format: 'MMM. dd hh:mm' });
args.text = formattedString;
}
|