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

[SCT-Workflow]: Research New Chart Library For Box Plots #129

Closed
3 tasks done
g-braide opened this issue Dec 18, 2024 · 4 comments
Closed
3 tasks done

[SCT-Workflow]: Research New Chart Library For Box Plots #129

g-braide opened this issue Dec 18, 2024 · 4 comments
Assignees
Labels
2SP Effort Estimation: 4hrs Max

Comments

@g-braide
Copy link

g-braide commented Dec 18, 2024

As a developer i want to research a possible replacement for the box plot charts to accommodate the needs for this application.

  • Add suggestions to this ticket
  • Must be open-source & free
  • Easily differentiate multi series
@g-braide g-braide added this to the SCT-Workflow Sprint 0 milestone Dec 18, 2024
@g-braide g-braide added the 2SP Effort Estimation: 4hrs Max label Dec 18, 2024
@tyler-siskar
Copy link

Went through a list of open source libraries, and only found echarts-for-react supporting multiseries boxplots. Very similar API to Chartjs, should be a fairly easy migration

@tyler-siskar
Copy link

tyler-siskar commented Dec 18, 2024

Example of multiseries boxplot in echarts:

import React, { useEffect, useState } from 'react';
import ReactEcharts from 'echarts-for-react';

const App = () => {
  const [options, setOptions] = useState({});

  useEffect(() => {
    const chartOptions = {
      title: {
        text: 'Multi-series Boxplot'
      },
      tooltip: {
        trigger: 'item'
      },
      xAxis: {
        type: 'category',
        data: ['Series 1', 'Series 2']
      },
      yAxis: {
        type: 'value'
      },
      series: [
        {
          name: 'Series 1',
          type: 'boxplot',
          data: [
            [10, 20, 30, 40, 50],
            [20, 30, 40, 50, 60]
          ]
        },
        {
          name: 'Series 2',
          type: 'boxplot',
          data: [
            [15, 25, 35, 45, 55],
            [25, 35, 45, 55, 65]
          ]
        }
      ]
    };

    setOptions(chartOptions);
  }, []);

  return (
    <ReactEcharts option={options} />
  );
};

export default App;

@trietmnj
Copy link
Contributor

trietmnj commented Dec 20, 2024

It looks great! There is out of the box filtering too with interactivity on the legend.

Image

Image

@tyler-siskar
Copy link

@g-braide g-braide closed this as completed Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2SP Effort Estimation: 4hrs Max
Projects
None yet
Development

No branches or pull requests

3 participants