Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Custom content: allow passing line plot series as list of tuples in JSON#3246

Merged
vladsavelyev merged 1 commit into
mainfrom
cc-line-json
Jul 2, 2025
Merged

Custom content: allow passing line plot series as list of tuples in JSON#3246
vladsavelyev merged 1 commit into
mainfrom
cc-line-json

Conversation

@vladsavelyev

Copy link
Copy Markdown
Contributor

Fix #3138

This config doesn't preserve the order of data points:

{
  "id": "custom_linegraph",
  "section_name": "Custom Line Graph",
  "plot_type": "linegraph",
  "data": {
    "Row_1": {
      "0": 0,
      "31": 0,
      "32": 100,
      "34": 100,
      "35": 0,
      "59": 0,
      "60": 100,
      "146": 100,
      "147": 0,
      "300": 0
    }
  }
}

Allow passing values as a list of tuples instead:

{
  "id": "custom_linegraph",
  "section_name": "Custom Line Graph",
  "plot_type": "linegraph",
  "data": {
    "Row_1": [
      [0, 0],
      [31, 0],
      [32, 100],
      [34, 100],
      [35, 0],
      [59, 0],
      [60, 100],
      [146, 100],
      [147, 0],
      [300, 0]
    ]
  }
}

@vladsavelyev vladsavelyev added this to the v1.30 milestone Jul 2, 2025
@vladsavelyev vladsavelyev merged commit 5934b2e into main Jul 2, 2025
10 checks passed
@vladsavelyev vladsavelyev deleted the cc-line-json branch July 2, 2025 11:50
@ewels

ewels commented Jul 2, 2025

Copy link
Copy Markdown
Member

This needs to be added to the documentation 🙏🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ordered Line Graph

2 participants