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

Add support for NumPy ndarray to .from_array() #92

Closed
7 tasks done
hcpchris opened this issue Aug 14, 2023 · 0 comments
Closed
7 tasks done

Add support for NumPy ndarray to .from_array() #92

hcpchris opened this issue Aug 14, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@hcpchris
Copy link
Collaborator

hcpchris commented Aug 14, 2023

At a high-level, the data point and series .from_array() methods should support NumPy ndarray objects as inputs. The fundamental priority is to use NumPy's vectorization to provide a performance boost to Highcharts for Python's handling of data points.

To do:

  • Add .from_ndarray() class method to DataBase.
  • Modify .from_array() class methods to call .from_ndarray() when the value passed is (or can easily be represented as) a NumPy ndarray.
  • Implement DataPointCollection class, representing a vectorized array of data point values.
  • Implement data point-type specific sub-classes of DataPointCollection.
  • Modify series .data properties to support DataPointCollection instances.
  • Add support for propagating attributes on get and set at the series level.
  • Add support for propagating attributes on get and set at the data collection level.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant