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

Examples: Add pie and donut charts #88

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

louismaximepiton
Copy link
Member

@louismaximepiton louismaximepiton commented Jan 24, 2024

⚠️ Remove the 3 commits that are handled by #242.

Note: Please transform - [ ] into - (NA) in the description when things are not applicable

Related issues

NA

Description

Added an example showing a pie and a donut charts.

Questions still to be answered:

  • Do we make several pages for these two kinds of charts or only one is enough ? If not, remove the ods-donut-charts.png.
  • Not quite sure of the values I gave inside the examples. Need to be discussed or is it fine as a first draft ?
  • Do we need to update getThemeOptions accordingly ? For example we don't have axis on this kind of chart.

Motivation & Context

These type of charts are considered as basic and are missing inside the doc.

Types of change

  • New feature (non-breaking change which adds functionality)

Test checklist

Please check that the following tests projects are still working:

  • docs/examples
  • test/angular-ngx-echarts
  • test/angular-tour-of-heroes
  • test/html
  • test/react
  • test/vue
  • test/examples/bar-line-chart
  • test/examples/single-line-chart
  • test/examples/timeseries-chart

Copy link

netlify bot commented Jan 24, 2024

Deploy Preview for ods-charts ready!

Name Link
🔨 Latest commit c43737c
🔍 Latest deploy log https://app.netlify.com/sites/ods-charts/deploys/662b5c2d85ab0c000800cb11
😎 Deploy Preview https://deploy-preview-88--ods-charts.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@jacques-lebourgeois
Copy link
Member

Hi, I push 3 commits, 2 suggestion and one enhancement.

Available to discuss about them :)

Copy link
Member Author

@louismaximepiton louismaximepiton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel right with your changes, the display is great and as an alpha version it's fine to add some support to legend I think

<label for="usedLegends" class="form-label">Legends</label>
<select class="form-select" aria-label="Line style" id="usedLegends" onchange="changeTheme('${id}')">
<option value="echarts" >Not managed by ods-charts</option>
<option value="odscharts" >ods-charts legends</option>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right : there are three types of legend to manage.

NB: it should be possible to choose a legend type independently of the graph type, even if there is a default legend type for each graph type.

As far as the scope of this MR is concerned, this means being able to have the captions vertical.

popoverTemplateInput = 'internal';
}
if (!usedLegends) {
usedLegends = 'echarts';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer defaulting to ods-charts one 🤔 What do you think ?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I asked myself the question.

If the aim is to limit specific dev, then it's better to use the default behaviour of Apache Echarts, provided that the design generated with Apache Echarts legends and adapted by ods-charts is considered satisfactory.

  • To use ECharts legends: the look&feel is satisfactory
  • To use ods-charts legends: behaviour at the limits of Apache Echarts can lead to the internal legends and the graphs being superimposed.

@julien-deramond
Copy link
Member

#158 has been merged, please apply the same modifications here.

@jacques-lebourgeois
Copy link
Member

#158 has been merged, please apply the same modifications here

Commited

@louismaximepiton louismaximepiton marked this pull request as draft May 28, 2024 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants