Skip to content

Commit d0d94eb

Browse files
committed
Updated docs/using/
1 parent 782638c commit d0d94eb

33 files changed

+1001
-157
lines changed

docs/_static/asana-project-gid.png

21.2 KB
Loading

docs/_static/monday-board-id.png

20.8 KB
Loading

docs/using/_code_style_naming_conventions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
*There are only two hard things in Computer Science: cache invalidation and naming
22
things.* -- Phil Karlton
33

4-
Highcharts Stock is a JavaScript library, and as such it adheres to the code conventions
4+
Highcharts Gantt is a JavaScript library, and as such it adheres to the code conventions
55
that are popular (practically standard) when working in JavaScript. Chief among these
66
conventions is that variables and object properties (keys) are typically written in
77
``camelCase``.

docs/using/_importing.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,36 +6,36 @@
66

77
**Best Practice!**
88

9-
This method of importing **Highcharts Stock for Python** objects yields the fastest
9+
This method of importing **Highcharts Gantt for Python** objects yields the fastest
1010
performance for the ``import`` statement. However, it is more verbose and requires
11-
you to navigate the extensive :doc:`Highcharts Stock for Python API </api>`.
11+
you to navigate the extensive :doc:`Highcharts Gantt for Python API </api>`.
1212

1313
.. code-block:: python
1414
1515
# Import classes using precise module indications. For example:
16-
from highcharts_stock.chart import Chart
17-
from highcharts_stock.global_options.shared_options import SharedStockOptions
18-
from highcharts_stock.options import HighchartsStockOptions
19-
from highcharts_stock.options.plot_options.bar import BarOptions
20-
from highcharts_stock.options.series.bar import BarSeries
16+
from highcharts_gantt.chart import Chart
17+
from highcharts_gantt.global_options.shared_options import SharedGanttOptions
18+
from highcharts_gantt.options import HighchartsGanttOptions
19+
from highcharts_gantt.options.plot_options.gantt import GanttOptions
20+
from highcharts_gantt.options.series.gantt import GanttSeries
2121
2222
.. tab:: from ``.highcharts``
2323

2424
.. caution::
2525

26-
This method of importing **Highcharts Stock for Python** classes has relatively slow
26+
This method of importing **Highcharts Gantt for Python** classes has relatively slow
2727
performance because it imports hundreds of different classes from across the entire
2828
library. This performance impact may be acceptable to you in your use-case, but
2929
do use at your own risk.
3030

3131
.. code-block:: python
3232
3333
# Import objects from the catch-all ".highcharts" module.
34-
from highcharts_stock import highcharts
34+
from highcharts_gantt import highcharts
3535
3636
# You can now access specific classes without individual import statements.
3737
highcharts.Chart
38-
highcharts.SharedStockOptions
39-
highcharts.HighchartsStockOptions
40-
highcharts.BarOptions
41-
highcharts.BarSeries
38+
highcharts.SharedGanttOptions
39+
highcharts.HighchartsGanttOptions
40+
highcharts.GanttOptions
41+
highcharts.GanttSeries

docs/using/_working_with_stock_features.rst

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@
1212
:align: center
1313

1414
To display the stock tools in your chart, you can use the
15-
:meth:`HighchartsStockOptions.stock_tools <highcharts_stock.options.HighchartsStockOptions.stock_tools>`
15+
:meth:`HighchartsGanttOptions.stock_tools <highcharts_gantt.options.HighchartsGanttOptions.stock_tools>`
1616
setting, which can be configured using a
17-
:class:`StockTools <highcharts_stock.options.stock_tools.StockTools>` instance.
17+
:class:`StockTools <highcharts_gantt.options.stock_tools.StockTools>` instance.
1818

1919
.. code-block:: python
2020
2121
my_stock_tools = StockTools(gui = { 'enabled': True })
22-
my_options = HighchartsStockOptions(stock_tools = my_stock_tools)
22+
my_options = HighchartsGanttOptions(stock_tools = my_stock_tools)
2323
my_chart = Chart.from_options(my_options)
2424
2525
.. seealso::
2626

27-
* :class:`StockTools <highcharts_stock.options.stock_tools.StockTools>`
28-
* :class:`StockToolsGUI <highcharts_stock.options.stock_tools.StockToolsGUI>`
27+
* :class:`StockTools <highcharts_gantt.options.stock_tools.StockTools>`
28+
* :class:`StockToolsGUI <highcharts_gantt.options.stock_tools.StockToolsGUI>`
2929

3030
.. tab:: Navigator
3131

@@ -37,10 +37,10 @@
3737
:alt: Navigator
3838
:align: center
3939

40-
The navigator is enabled by default in :class:`Chart <highcharts_stock.chart.Chart>`
41-
instances where :meth:`.is_stock_chart <highcharts_stock.chart.Chart.is_stock_chart>`
42-
is ``True`` or whose :meth:`.options <highcharts_stock.chart.Chart.options>` contain
43-
a :class:`HighchartsStockOptions <highcharts_stock.options.HighchartsStockOptions>`
40+
The navigator is enabled by default in :class:`Chart <highcharts_gantt.chart.Chart>`
41+
instances where :meth:`.is_stock_chart <highcharts_gantt.chart.Chart.is_stock_chart>`
42+
is ``True`` or whose :meth:`.options <highcharts_gantt.chart.Chart.options>` contain
43+
a :class:`HighchartsStockOptions <highcharts_gantt.options.HighchartsStockOptions>`
4444
instance.
4545

4646
You can configure how the navigator is rendered using several different methods:
@@ -53,12 +53,12 @@
5353
``PlotOptions.<SERIES TYPE>.show_in_navigator`` and
5454
``PlotOptions.<SERIES TYPE>.navigator_options`` properties.
5555
* You can set overall configuration settings for the entire navigator using the
56-
:meth:`HighchartsStockOptions.navigator <highcharts_stock.HighchartsStockOptions.navigator>`
56+
:meth:`HighchartsStockOptions.navigator <highcharts_gantt.options.HighchartsStockOptions.navigator>`
5757
setting.
5858

5959
.. seealso::
6060

61-
* :class:`Navigator <highcharts_stock.options.navigator.Navigator>`
61+
* :class:`Navigator <highcharts_gantt.options.navigator.Navigator>`
6262

6363
.. tab:: Range Selector
6464

@@ -71,8 +71,8 @@
7171
:align: center
7272

7373
Based upon its configuration (via the
74-
:meth:`HighchartsStockOptions.options.range_selector <highcharts_stock.options.HighchartsStockOptions.options.range_selector>`
75-
property), it can display a series of buttons that allow the user to zoom to a
74+
:meth:`HighchartsGanttOptions.range_selector <highcharts_gantt.options.HighchartsGanttOptions.range_selector>` or :meth:`HighchartsStockOptions.range_selector <highcharts_gantt.options.HighchartsStockOptions.range_selector>`
75+
properties), it can display a series of buttons that allow the user to zoom to a
7676
specific granularity (e.g. display one day's worth of data, display one week's worth
7777
of data, display one month's worth of data, etc.) and can provide the user with inputs
7878
to select the range (start date / end date) which should be displayed.
@@ -82,10 +82,11 @@
8282
By default, the range selector is rendered in a responsive fashion. If there is not
8383
enough room to display the entire selector in a single row, it will collapse into a
8484
dropdown configuration based on the
85-
:meth:`RangeSelector.dropdown <highcharts_stock.options.range_selector.RangeSelector.dropdown>`
85+
:meth:`RangeSelector.dropdown <highcharts_gantt.options.range_selector.RangeSelector.dropdown>`
8686
setting.
8787

8888
.. seealso::
8989

90-
* :class:`RangeSelector <highcharts_stock.options.range_selector.RangeSelector>`
91-
* :meth:`HighchartsStockOptions.range_selector <highcharts_stock.options.HighchartsStockOptions.range_selector>`
90+
* :class:`RangeSelector <highcharts_gantt.options.range_selector.RangeSelector>`
91+
* :meth:`HighchartsGanttOptions.range_selector <highcharts_gantt.options.HighchartsGanttOptions.range_selector>`
92+
* :meth:`HighchartsStockOptions.range_selector <highcharts_gantt.options.HighchartsStockOptions.range_selector>`
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
.. note::
22

3-
``.add_series()`` is supported by both the
4-
:class:`Chart <highcharts_stock.chart.Chart>` and
5-
:class:`HighchartsStockOptions <highcharts_stock.options.HighchartsStockOptions>`
3+
``.add_series()`` is supported by the
4+
:class:`Chart <highcharts_gantt.chart.Chart>`,
5+
:class:`HighchartsGanttOptions <highcharts_gantt.options.HighchartsGanttOptions>`, and
6+
:class:`HighchartsStockOptions <highcharts_gantt.options.HighchartsStockOptions>`
67
classes
78

89
.. code-block:: python
910
1011
my_chart = Chart()
11-
my_chart.add_series(my_series1, my_series2)
1212
1313
my_series = LineSeries()
1414
my_chart.add_series(my_series)
@@ -19,12 +19,12 @@
1919
:noindex:
2020

2121
Adds ``series`` to the
22-
:meth:`Chart.options.series <highcharts_stock.options.HighchartsStockOptions.series>`
22+
:meth:`Chart.options.series <highcharts_gantt.options.HighchartsGanttOptions.series>`
2323
property.
2424

2525
:param series: One or more :term:`series` instances (descended from
26-
:class:`SeriesBase <highcharts_stock.options.series.base.SeriesBase>`) or an
26+
:class:`SeriesBase <highcharts_gantt.options.series.base.SeriesBase>`) or an
2727
instance (e.g. :class:`dict <python:dict>`, :class:`str <python:str>`, etc.)
2828
coercable to one
29-
:type series: :class:`SeriesBase <highcharts_stock.options.series.base.SeriesBase>`
29+
:type series: :class:`SeriesBase <highcharts_gantt.options.series.base.SeriesBase>`
3030
or coercable
Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
.. note::
22

3-
``.from_series()`` is supported by both the
4-
:class:`Chart <highcharts_stock.chart.Chart>` and
5-
:class:`HighchartsStockOptions <highcharts_stock.options.HighchartsStockOptions>`
3+
``.from_series()`` is supported by the
4+
:class:`Chart <highcharts_gantt.chart.Chart>`,
5+
:class:`HighchartsGanttOptions <highcharts_gantt.options.HighchartsGanttOptions>`, and
6+
:class:`HighchartsStockOptions <highcharts_gantt.options.HighchartsStockOptions>`
67
classes
78

89
.. code-block:: python
@@ -17,14 +18,14 @@
1718
.. method:: .from_series(cls, *series, kwargs = None)
1819
:noindex:
1920

20-
Creates a new :class:`Chart <highcharts_stock.chart.Chart>` instance populated
21+
Creates a new :class:`Chart <highcharts_gantt.chart.Chart>` instance populated
2122
with ``series``.
2223

2324
:param series: One or more :term:`series` instances (descended from
24-
:class:`SeriesBase <highcharts_stock.options.series.base.SeriesBase>`) or an
25+
:class:`SeriesBase <highcharts_gantt.options.series.base.SeriesBase>`) or an
2526
instance (e.g. :class:`dict <python:dict>`, :class:`str <python:str>`, etc.)
2627
coercable to one
27-
:type series: :class:`SeriesBase <highcharts_stock.options.series.base.SeriesBase>`
28+
:type series: :class:`SeriesBase <highcharts_gantt.options.series.base.SeriesBase>`
2829
or coercable
2930

3031
:param kwargs: Other properties to use as keyword arguments for the instance to be
@@ -33,10 +34,10 @@
3334
.. warning::
3435

3536
If ``kwargs`` sets the
36-
:meth:`options.series <highcharts_stock.options.HighchartsStockOptions.series>`
37+
:meth:`options.series <highcharts_gantt.options.HighchartsGanttOptions.series>`
3738
property, that setting will be *overridden* by the contents of ``series``.
3839

3940
:type kwargs: :class:`dict <python:dict>`
4041

41-
:returns: A new :class:`Chart <highcharts_stock.chart.Chart>` instance
42-
:rtype: :class:`Chart <highcharts_stock.chart.Chart>`
42+
:returns: A new :class:`Chart <highcharts_gantt.chart.Chart>` instance
43+
:rtype: :class:`Chart <highcharts_gantt.chart.Chart>`

docs/using/assembling_your_chart/_using_series_property.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. code-block:: python
22
3-
from highcharts_stock.chart import Chart
4-
from highcharts_stock.options.series.area import LineSeries
5-
from highcharts_stock.options.series.bar import BarSeries
3+
from highcharts_gantt.chart import Chart
4+
from highcharts_gantt.options.series.area import LineSeries
5+
from highcharts_gantt.options.series.bar import BarSeries
66
77
# Create a Chart instance called "my_chart" with an empty set of options
88
my_chart = Chart(options = {})

docs/using/download_visualizations/_using_custom.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
.. code-block:: python
22
3-
from highcharts_stock.chart import Chart
4-
from highcharts_stock.options.series.area import LineSeries
5-
from highcharts_stock.headless_export import ExportServer
3+
from highcharts_gantt.chart import Chart
4+
from highcharts_gantt.options.series.gantt import GanttSeries
5+
from highcharts_gantt.headless_export import ExportServer
66
77
custom_server = ExportServer(url = 'https://www.mydomain.dev/some_pathname_goes_here')
88
99
my_chart = Chart(container = 'target_div',
1010
options = {
1111
'series': [
12-
LineSeries(data = [0, 5, 3, 5])
12+
GanttSeries(data = [ ... ])
1313
]
1414
},
1515
variable_name = 'myChart',
16-
is_stock_chart = True)
16+
is_gantt_chart = True)
1717
1818
# Download a PNG version of the chart in memory within your Python code.
1919
my_png_image = my_chart.download_chart(format = 'png',
@@ -33,14 +33,14 @@
3333
If you are using a custom :term:`export server`, it is strongly recommended that you
3434
supply its configuration (e.g. the URL) via environment variables. For more information,
3535
please see
36-
:class:`headless_export.ExportServer <highcharts_stock.headless_export.ExportServer>`.
36+
:class:`headless_export.ExportServer <highcharts_gantt.headless_export.ExportServer>`.
3737

3838
.. collapse:: Method Signature
3939

4040
.. seealso::
4141

42-
* :meth:`Chart.download_chart() <highcharts_stock.chart.Chart.download_chart>`
43-
* :class:`headless_export.ExportServer <highcharts_stock.headless_export.ExportServer>`
42+
* :meth:`Chart.download_chart() <highcharts_gantt.chart.Chart.download_chart>`
43+
* :class:`headless_export.ExportServer <highcharts_gantt.headless_export.ExportServer>`
4444

4545
.. method:: .download_chart(self, filename = None, format = 'png', server_instance = None, scale = 1, width = None, auth_user = None, auth_password = None, timeout = 0.5, global_options = None, **kwargs)
4646
:noindex:
@@ -112,8 +112,8 @@
112112
``Highcharts.setOptions()`` method, and which will be applied to the exported
113113
chart. Defaults to :obj:`None <python:None>`.
114114

115-
:type global_options: :class:`HighchartsStockOptions <highcharts_stock.options.HighchartsStockOptions>`,
116-
:class:`HighchartsOptions <highcharts_stock.options.HighchartsOptions>` or
115+
:type global_options: :class:`HighchartsStockOptions <highcharts_gantt.options.HighchartsStockOptions>`,
116+
:class:`HighchartsOptions <highcharts_gantt.options.HighchartsOptions>` or
117117
:obj:`None <python:None>`
118118

119119
.. note::

docs/using/download_visualizations/_using_highsoft.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
.. code-block:: python
22
3-
from highcharts_stock.chart import Chart
4-
from highcharts_stock.options.series.area import LineSeries
3+
from highcharts_gantt.chart import Chart
4+
from highcharts_gantt.options.series.gantt import GanttSeries
55
66
my_chart = Chart(container = 'target_div',
77
options = {
88
'series': [
9-
LineSeries(data = [0, 5, 3, 5])
9+
GanttSeries(data = [ ... ])
1010
]
1111
},
1212
variable_name = 'myChart',
13-
is_stock_chart = True)
13+
is_gantt_chart = True)
1414
1515
# Download a PNG version of the chart in memory within your Python code.
1616
my_png_image = my_chart.download_chart(format = 'png')
@@ -25,8 +25,8 @@
2525

2626
.. seealso::
2727

28-
* :meth:`Chart.download_chart() <highcharts_stock.chart.Chart.download_chart>`
29-
* :class:`headless_export.ExportServer <highcharts_stock.headless_export.ExportServer>`
28+
* :meth:`Chart.download_chart() <highcharts_gantt.chart.Chart.download_chart>`
29+
* :class:`headless_export.ExportServer <highcharts_gantt.headless_export.ExportServer>`
3030

3131
.. method:: .download_chart(self, filename = None, format = 'png', server_instance = None, scale = 1, width = None, auth_user = None, auth_password = None, timeout = 0.5, global_options = None, **kwargs)
3232
:noindex:
@@ -98,8 +98,8 @@
9898
``Highcharts.setOptions()`` method, and which will be applied to the exported
9999
chart. Defaults to :obj:`None <python:None>`.
100100

101-
:type global_options: :class:`HighchartsStockOptions <highcharts_stock.options.HighchartsStockOptions>`,
102-
:class:`HighchartsOptions <highcharts_stock.options.HighchartsOptions>` or
101+
:type global_options: :class:`HighchartsStockOptions <highcharts_gantt.options.HighchartsStockOptions>`,
102+
:class:`HighchartsOptions <highcharts_gantt.options.HighchartsOptions>` or
103103
:obj:`None <python:None>`
104104

105105
.. note::

docs/using/populating_series_data/_adding_technical_indicators.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
.. note::
66

77
All standard :term:`series` (descending from
8-
:class:`SeriesBase <highcharts_stock.options.series.base.SeriesBase>`) have an
9-
:meth:`.add_indicator() <highcharts_stock.options.series.base.SeriesBase>` method
8+
:class:`SeriesBase <highcharts_gantt.options.series.base.SeriesBase>`) have an
9+
:meth:`.add_indicator() <highcharts_gantt.options.series.base.SeriesBase>` method
1010
which can be used to easily configure a new indicator tied to the series in
1111
question.
1212

@@ -29,7 +29,7 @@
2929

3030
:param chart: The chart object in which the series is rendered and to which the
3131
indicator should be appended.
32-
:type chart: :class:`Chart <highcharts_stock.chart.Chart>`
32+
:type chart: :class:`Chart <highcharts_gantt.chart.Chart>`
3333

3434
:param indicator_name: The name of the indicator that should be added to the series
3535
and chart. For the list of supported indicators, please review the
@@ -42,7 +42,7 @@
4242

4343
:returns: ``chart`` with a new indicator series included in its list of configured
4444
series.
45-
:rtype: :class:`Chart <highcharts_stock.chart.Chart>`
45+
:rtype: :class:`Chart <highcharts_gantt.chart.Chart>`
4646

4747
.. tab:: Using ``Chart.add_indicator()``
4848

@@ -73,20 +73,20 @@
7373
Creates a :class:`IndicatorSeriesBase` (descendant) that calculates the
7474
``indicator_name`` :term:`technical indicator` for the series provided in
7575
``series``, and adds it to the chart's
76-
:meth:`.options.series <highcharts_stock.options.HighchartsStockOptions.series>`.
76+
:meth:`.options.series <highcharts_gantt.options.HighchartsStockOptions.series>`.
7777

7878
:param indicator_name: The name of the indicator that should be added to the series
7979
and chart. For the list of supported indicators, please review the
8080
:ref:`Indicator List <indicator_list>`.
8181
:type indicator_name: :class:`str <python:str>`
8282

8383
:param series: The series to which the indicator should be added. Accepts either a
84-
series' :meth:`.id <highcharts_stock.options.series.SeriesBase.id>` as a
84+
series' :meth:`.id <highcharts_gantt.options.series.SeriesBase.id>` as a
8585
:class:`str <python:str>`, or a
86-
:class:`SeriesBase <highcharts_stock.options.series.base.SeriesBase>` (descendant)
86+
:class:`SeriesBase <highcharts_gantt.options.series.base.SeriesBase>` (descendant)
8787
instance.
8888
:type series: :class:`str <python:str>` or
89-
:class:`SeriesBase <highcharts_stock.options.series.base.SeriesBase>`
89+
:class:`SeriesBase <highcharts_gantt.options.series.base.SeriesBase>`
9090

9191
:param indicator_kwargs: Keyword arguments to apply when instantiating the new
9292
indicator series. Defaults to :obj:`None <python:None>`.

0 commit comments

Comments
 (0)