Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[yagr plugin]: series color does not reset to its original color when clicking on legend #500

Closed
dsleepo opened this issue Jul 4, 2024 · 0 comments · Fixed by #522
Closed
Labels
bug Something isn't working yagr

Comments

@dsleepo
Copy link
Contributor

dsleepo commented Jul 4, 2024

demo

image
When clicking on button a twice, the series color for b does not reset to its original color as expected.

Config:

{
  "data": {
    "timeline": [
      1705525200,
      1705611600
    ],
    "timeZone": "UTC",
    "graphs": [
      {
        "id": "a",
        "name": "a",
        "color": "rgb(255,255,0)",
        "data": [
          43.97782069570251,
          42.474166396151084
        ],
        "show": true
      },
      {
        "id": "b",
        "name": "b",
        "color": "rgb(255,0,0)",
        "data": [
          42.814983190371834,
          41.47785724489535
        ],
        "show": true
      }
    ]
  },
  "libraryConfig": {
    "axes": {
      "x": {
        "label": "UTC",
        "labelSize": 25
      },
      "y": {
        "label": "",
        "precision": "auto",
        "scale": "y",
        "side": "left"
      }
    },
    "chart": {
      "appearance": {
      },
      "series": {
        "type": "column",

        "interpolation": "linear"
      },
      "select": {
        "zoom": false
      },
      "timeMultiplier": 0.001
    },
    "cursor": {
      "snapToValues": false,
      "x": {
        "style": "1px solid #ffa0a0"
      },
      "y": {
        "visible": false
      }
    },
    "legend": {
      "show": true
    },
    "scales": {
      "x": {},
      "y": {
        "normalize": false,
        "stacking": true,
        "type": "linear"
      },
      "yRight": {
        "normalize": false,
        "stacking": true,
        "type": "linear"
      }
    },
    "tooltip": {
      "show": true,
      "hideNoData": false,
      "maxLines": 15,
      "percent": false,
      "precision": 2,
      "sum": false,
      "tracking": "area",
      "className": "chartkit-yagr-tooltip"
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working yagr
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants