Merge pull request #180 from kgeorgiou/fix-xaxis-axislabel-formatter-var-name
fix(axisLabel.formatter): example variable name
diff --git a/en/option/component/axis-common.md b/en/option/component/axis-common.md
index 59d0cb3..afb5317 100644
--- a/en/option/component/axis-common.md
+++ b/en/option/component/axis-common.md
@@ -798,7 +798,7 @@
// Formatted to be month/day; display year only in the first label
var date = new Date(value);
var texts = [(date.getMonth() + 1), date.getDate()];
- if (idx === 0) {
+ if (index === 0) {
texts.unshift(date.getYear());
}
return texts.join('/');