You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a collection of demonstrations of the Highcharts for Python toolkit. Fundamentally, they are a Python port of the fantastic demos that Highsoft has already published for their [Highcharts JavaScript library](https://www.highcharts.com/demo).
3
+
4
+
## Overview
5
+
6
+
The demos showcase a variety of ways of working with Highcharts for Python to create and visualize data. Because Highcharts for Python provides multiple paths to create your visualizations, we have tried to showcase various methods. Some demos use:
7
+
8
+
***Direct instantiation**. They create Python instances of objects using Python constructors like ``LineSeries(...)`` directly.
9
+
*``.from_js_literal()``. They create ``HighchartsOptions`` instances by taking a string of a JS literal option configuration using the ``.from_js_literal()`` method.
10
+
*``.from_dict()``. They create Python instances using the Highcharts for Python ``.from_dict()`` convenience method.
11
+
* other demo-specific techniques, which may vary from demo to demo
12
+
13
+
Each demo ultimately demonstrates one or more visualizations using one of the techniques mentioned above. The basic pattern we use is to:
14
+
15
+
1. Import the needed dependencies.
16
+
2. Assemble the options.
17
+
3. Assemble the chart.
18
+
4. Visualize the chart.
19
+
20
+
**NOTE!! The demos in this repository are a work in progress, and various demos will be added over time. Please check back periodically to see if new demos have been added.**
6
21
7
22
## How to Use the Demos
8
23
9
-
### Using MyBinder.org
10
-
The easy way is to launch a MyBinder session using the repository: [](https://mybinder.org/v2/gh/highcharts-for-python/highcharts-for-python-demos/HEAD)
24
+
### Organization
25
+
The demos are organized in Jupyter Notebooks, which make it easy to follow how they work, see their results in action, and experiment with them as needed.
11
26
12
-
Once the MyBinder launches, you will find yourself in a Jupyter Lab environment within a Docker image. You'll have this full repository available to you, and you can navigate the folders to find the demo you want to run.
27
+
The repository is organized into folders for each of the Highcharts for Python libraries:
28
+
29
+
*``highcharts-core`` contains demos of the [Highcharts Core for Python](https://core-docs.highchartspython.com) library
30
+
*``highcharts-stock`` contains demos of the [Highcharts Stock for Python](https://stock-docs.highchartspython.com) library
31
+
*``highcharts-maps`` contains demos of the [Highcharts Maps for Python](https://maps-docs.highchartspython.com) library
32
+
*``highcharts-gantt`` contains demos of the [Highcharts Gantt for Python](https://gantt-docs.highchartspython.com) library
33
+
34
+
Within each of these folders, you will find sub-folders grouping demos into a particular category. For example:
13
35
14
-
You will find that the folders are organized according to the Highcharts for Python library being demonstrated, e.g. ``highcharts-core`` for the **Highcharts Core for Python** library, and ``highcharts-stock`` for the **Highcharts Stock for Python** library, etc. And within each of those folders you will find additional folders organizing the demos by chart type or type of demo.
36
+
* the ``highcharts-core/line-charts`` folder contains Jupyter Notebooks which demonstrate different line chart functionality.
37
+
* the ``highcharts-core/python-features`` folder contains Notebooks which demonstrate some Python-specific features
38
+
39
+
### Using the Demos via MyBinder.org
40
+
41
+
The easy way to use or review the demos is to launch a MyBinder session using the following buttton: [](https://mybinder.org/v2/gh/highcharts-for-python/highcharts-for-python-demos/HEAD)
42
+
43
+
Once the MyBinder launches, you will find yourself in a Jupyter Lab environment within a Docker image. You'll have this full repository available to you, and you can navigate the folders to find the demo you want to run.
15
44
16
45
For example, to see how **Highcharts Core for Python** generates a basic line chart, you can open the Notebook at ``highcharts-core/line-charts/basic-line.ipynb``.
17
46
@@ -20,59 +49,120 @@ Then just run the Notebook, and you should see the results.
20
49
### Using the Demos Locally
21
50
To use the demos locally, you need to take several additional steps:
You should now see the set of notebooks included in the repo, along with relevant data files and other details.
73
102
74
-
You will find that the folders are organized according to the Highcharts for Python library being demonstrated, e.g. ``highcharts-core`` for the **Highcharts Core for Python** library, and ``highcharts-stock`` for the **Highcharts Stock for Python** library, etc. And within each of those folders you will find additional folders organizing the demos by chart type or type of demo.
75
-
76
103
For example, to see how **Highcharts Core for Python** generates a basic line chart, you can open the Notebook at ``highcharts-core/line-charts/basic-line.ipynb``.
77
104
78
-
Then just run the Notebook, and you should see the results.
105
+
Then just run the Notebook, and you should see the results.
0 commit comments