You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by wa...@apache.org on 2021/04/05 10:17:10 UTC

[echarts-doc] branch master updated: fix(axisLabel.formatter): example variable name

This is an automated email from the ASF dual-hosted git repository.

wangzx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts-doc.git


The following commit(s) were added to refs/heads/master by this push:
     new 3dc765d  fix(axisLabel.formatter): example variable name
     new 7478714  Merge pull request #180 from kgeorgiou/fix-xaxis-axislabel-formatter-var-name
3dc765d is described below

commit 3dc765dcc0b1baa19ee578d5317da2fd5dc0500e
Author: Kyriakos Georgiou <kg...@users.noreply.github.com>
AuthorDate: Mon Apr 5 00:24:13 2021 -0400

    fix(axisLabel.formatter): example variable name
---
 en/option/component/axis-common.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 @@ formatter: function (value, index) {
     // 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('/');

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org