Skip to content
This repository has been archived by the owner on May 29, 2018. It is now read-only.

DateFormat chart option can be a variable or function #14

Open
abdul-qadirdeveloper opened this issue May 21, 2014 · 0 comments
Open

DateFormat chart option can be a variable or function #14

abdul-qadirdeveloper opened this issue May 21, 2014 · 0 comments

Comments

@abdul-qadirdeveloper
Copy link

for globalization support chart.exporting.csv.dateFormat should be either a variable or a function, therefore, custom dateFormat may be provided for parsing dates using function.
In this regard following code changes are requested.
if (series.xAxis.isDatetimeAxis) {
xData = Highcharts.map(xData, function (x) {
if (typeof dateFormat == 'function') {
return dateFormat(x);
} else {
return Highcharts.dateFormat(dateFormat, x)
}
});
xTitle = 'DateTime';
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant