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

fix e_remove_serie_p when using serie_index #302

Merged
merged 4 commits into from
Apr 7, 2021

Conversation

RCura
Copy link
Contributor

@RCura RCura commented Apr 7, 2021

  • data.index was a typo, should be data.serie_index
  • checking for true (vs != null) misworks when serie_index = 0 (ie. first serie)

This fixes the problem with e_remove_serie that's discussed in #300 .
The only way atm to remove a radar serie is through the index, as the serie name does'nt work : with radar plots (and other array-based series structures), there is no opts.series[[i]].name, as the series are arrays and their name are inside opts.series[[i]].data[[0]].name.

RCura added 2 commits April 7, 2021 10:58
- data.index was a typo, should be data.serie_index
- checking for true (vs != null) misworks when serie_index = 0 (ie. first serie)
@RCura
Copy link
Contributor Author

RCura commented Apr 7, 2021

Added a very ugly fix (fe4b4e0) for removing series by name with radar plots and so on, but I'm really not sure about the possible side-effects.

@JohnCoene
Copy link
Owner

Thanks Robin!

Could you please add yourself as contributor to the DESCRIPTION? I'll merge soon after that.

@RCura
Copy link
Contributor Author

RCura commented Apr 7, 2021

Thanks Robin!

Could you please add yourself as contributor to the DESCRIPTION? I'll merge soon after that.

Done, thanks a lot !

@JohnCoene JohnCoene merged commit 31b6f96 into JohnCoene:master Apr 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants