.chart
class: Chart
- class Chart(**kwargs)[source]
- Python representation of a Highcharts - Chartobject.- Class Inheritance - add_indicator(indicator_name, series, indicator_kwargs=None)[source]
- Creates a new technical indicator series which calculates the indicator - indicator_namefor the series provided in- series, and adds it to the chart’s- .options.series.- Parameters:
- indicator_name ( - str) – The name of the indicator that should be added to the series and chart. For the list of supported indicators, please review the Indicator List.
- series ( - stror- SeriesBase) – The series to which the indicator should be added. Accepts either a series’- .idas a- str, or a- SeriesBase(descendant) instance.
- indicator_kwargs ( - dictor- None) – Keyword arguments to apply when instantiating the new indicator series. Defaults to- None.
 
- Returns:
- Nothing. It simply changes the composition of the chart instance’s series to now include a new series with the indicator. 
 
 - add_series(*series)[source]
- Adds - seriesto the- Chart.options.seriesproperty.- Parameters:
- series (one or more - SeriesBaseor coercable) – One or more series instances (descended from- SeriesBase) or an instance (e.g.- dict,- str, etc.) coercable to one
 
 - copy(other=None, overwrite=True, **kwargs)[source]
- Copy the configuration settings from this chart to the - otherchart.- Parameters:
- other ( - Chart) – The target chart to which the properties of this chart should be copied. If- None, will create a new chart and populate it with properties copied from- self. Defaults to- None.
- overwrite ( - bool) – if- True, properties in- otherthat are already set will be overwritten by their counterparts in- self. Defaults to- True.
- preserve_data ( - bool) – If- True, will preserve the data values in any series contained in- otherand the configuration of the- options.dataproperty, but will still copy other properties as applicable. If- False, will overwrite data in- otherwith data from- self. Defaults to- True.
- kwargs – Additional keyword arguments. Some special descendents of - HighchartsMetamay have special implementations of this method which rely on additional keyword arguments.
 
- Returns:
- A mutated version of - otherwith new property values
 
 - display(global_options=None)[source]
- Display the chart in Jupyter Labs or Jupyter Notebooks. - Raises:
- HighchartsDependencyError – if ipython is not available in the runtime environment 
 
 - download_chart(format_='png', scale=1, width=None, filename=None, auth_user=None, auth_password=None, timeout=0.5, server_instance=None, **kwargs)[source]
- Export a downloaded form of the chart using a Highcharts Export Server. - Parameters:
- filename (Path-like or - None) – The name of the file where the exported chart should (optionally) be persisted. Defaults to- None.
- auth_user ( - stror- None) – The username to use to authenticate against the Export Server, using basic authentication. Defaults to- None.
- auth_password ( - stror- None) – The password to use to authenticate against the Export Server (using basic authentication). Defaults to- None.
- timeout (numeric or - None) – The number of seconds to wait before issuing a timeout error. The timeout check is passed if bytes have been received on the socket in less than the- timeoutvalue. Defaults to- 0.5.
- server_instance ( - ExportServeror- None) – Provide an already-configured- ExportServerinstance to use to programmatically produce the exported chart. Defaults to- None, which causes Highcharts for Python to instantiate a new- ExportServerinstance.
 
 - Note - All other keyword arguments are as per the - ExportServerconstructor.
 - classmethod from_asana(project_gid, section_gid=None, completed_since=None, use_html_description=True, personal_access_token=None, asana_client=None, api_request_params=None, connection_kwargs=None, connection_callback=None, series_kwargs=None, options_kwargs=None, chart_kwargs=None)[source]
- Create a Gantt - Chartinstance from an Asana project.- Note - Highcharts Gantt for Python can create an Asana API client for you, authenticating using the Personal Access Token` method supported by the Asana API. However, if you wish to use the more-involved OAuth2 handshake process you will need to create your own Asana API client using the asana-python library. - The reason for this is because the OAuth2 handshake has various permutations involving redirects, token refreshes, etc. which are outside the scope of the Highcharts Gantt for Python library, and if you are integrating Highcharts Gantt for Python into a larger application you are likely already facilitating the OAuth2 dance in a fashion appropriate for your use case. - Parameters:
- project_gid ( - str) – The globally unique ID of the Project whose tasks should be used to assemble the Gantt chart.
- section_gid ( - stror- None) – The optional unique ID of the section whose tasks should be used to assemble the Gantt chart. Defaults to- None, which returns all tasks in the project.
- completed_since ( - datetimeor- None) – An optional filter which only returns tasks that have been completed after this date. Defaults to- None, which returns all tasks.
- use_html_description ( - bool) – If- True, will use the Asana task’s HTML notes in the data point’s- .descriptionfield. If- False, will use the non-HTML notes. Defaults to- True.
- personal_access_token ( - stror- None) – A Personal Access Token created by Asana. Defaults to- None, which tries to determine its value by looking in the- ASANA_PERSONAL_ACCESS_TOKENenvironment variable.
- api_request_params ( - dictor- None) – Collection of additional request parameters to submit to the Asana API. Defaults to- None.
- connection_kwargs ( - dictor- None) – Set of keyword arugments to supply to the- DataConnectionconstructor, besides the- .toproperty which is derived from the task. Defaults to- None
- connection_callback (Callable or - None) –- A custom Python function or method which accepts two keyword arguments: - connection_target(which expects the dependency- dictobject from the Asana task), and- asana_task(which expects the Asana task- dictobject). The function should return a- DataConnectioninstance. Defaults to- None- Tip - The - connection_callbackargument is useful if you want to customize the connection styling based on properties included in the Asana task.
- series_kwargs ( - dictor- None) – Collection of additional keyword arguments to use when instantiating the- GanttSeries(besides the- dataargument, which will be determined from the Asana tasks). Defaults to- None.
- options_kwargs ( - dictor- None) –- An optional - dictcontaining keyword arguments that should be used when instantiating the- HighchartsOptionsinstance. Defaults to- None.- Warning - If - options_kwargscontains a- serieskey, the- seriesvalue will be overwritten. The- seriesvalue will be created from the data in- df.
- An optional - dictcontaining keyword arguments that should be used when instantiating the- Chartinstance. Defaults to- None.- Warning - If - chart_kwargscontains an- optionskey,- optionswill be overwritten. The- optionsvalue will be created from the- options_kwargsand the data in- dfinstead.
 
- Returns:
- A Gantt - Chartinstance
- Return type:
 
 - classmethod from_csv(as_string_or_file, property_column_map, series_type, has_header_row=True, series_kwargs=None, options_kwargs=None, chart_kwargs=None, delimiter=',', null_text='None', wrapper_character="'", line_terminator='\r\n', wrap_all_strings=False, double_wrapper_character_when_nested=False, escape_character='\\', is_gantt_chart=False)[source]
- Create a new - Chartinstance with data populated from a CSV string or file.- Note - For an example - LineSeries, the minimum code required would be:- my_chart = Chart.from_csv('some-csv-file.csv', property_column_map = { 'x': 0, 'y': 3, 'id': 'id' }, series_type = 'line') - As the example above shows, data is loaded into the - my_chartinstance from the CSV file with a filename- some-csv-file.csv. The- xvalues for each data point will be taken from the first (index 0) column in the CSV file. The- yvalues will be taken from the fourth (index 3) column in the CSV file. And the- idvalues will be taken from a column whose header row is labeled- 'id'(regardless of its index).- Parameters:
- as_string_or_file ( - stror Path-like) –- The CSV data to use to pouplate data. Accepts either the raw CSV data as a - stror a path to a file in the runtime environment that contains the CSV data.- Tip - Unwrapped empty column values are automatically interpreted as null ( - None).
- property_column_map ( - dict) –- A - dictused to indicate which data point property should be set to which CSV column. The keys in the- dictshould correspond to properties in the data point class, while the value can either be a numerical index (starting with 0) or a- strindicating the label for the CSV column.
- series_type ( - str) – Indicates the series type that should be created from the CSV data.
- has_header_row ( - bool) – If- True, indicates that the first row of- as_string_or_filecontains column labels, rather than actual data. Defaults to- True.
- series_kwargs ( - dictor- None) –- An optional - dictcontaining keyword arguments that should be used when instantiating the series instance. Defaults to- None.- Warning - If - series_kwargscontains a- datakey, its value will be overwritten. The- datavalue will be created from the CSV file instead.
- options_kwargs ( - dictor- None) –- An optional - dictcontaining keyword arguments that should be used when instantiating the- HighchartsOptionsinstance. Defaults to- None.- Warning - If - options_kwargscontains a- serieskey, the- seriesvalue will be overwritten. The- seriesvalue will be created from the CSV file instead.
- An optional - dictcontaining keyword arguments that should be used when instantiating the- Chartinstance. Defaults to- None.- Warning - If - chart_kwargscontains an- optionskey,- optionswill be overwritten. The- optionsvalue will be created from the- options_kwargsand CSV file instead.
- delimiter ( - str) – The delimiter used between columns. Defaults to- ,.
- wrapper_character ( - str) – The string used to wrap string values when wrapping is applied. Defaults to- '.
- null_text ( - str) – The string used to indicate an empty value if empty values are wrapped. Defaults to None.
- line_terminator ( - str) –- The string used to indicate the end of a line/record in the CSV data. Defaults to - '\r\n'.- Note - The Python - csvcurrently ignores the- line_terminatorparameter and always applies- '\r\n', by design. The Python docs say this may change in the future, so for future backwards compatibility we are including it here.
- wrap_all_strings ( - bool) –- If - True, indicates that the CSV file has all string data values wrapped in quotation marks. Defaults to- False.
- double_wrapper_character_when_nested ( - bool) – If- True, quote character is doubled when appearing within a string value. If- False, the- escape_characteris used to prefix quotation marks. Defaults to- False.
- escape_character ( - str) – A one-character string that indicates the character used to escape quotation marks if they appear within a string value that is already wrapped in quotation marks. Defaults to- \\(which is Python for- '\', which is Python’s native escape character).
- is_gantt_chart ( - bool) – If- True, indicates that the chart should be instantiated as a Highcharts Stock for Python chart. Defaults to- False.
 
- Returns:
- A - Chartinstance with its data populated from the CSV data.
- Return type:
- Raises:
- HighchartsCSVDeserializationError – if - property_column_mapreferences CSV columns by their label, but the CSV data does not contain a header row
 
 - classmethod from_dict(as_dict: dict, allow_snake_case: bool = True)
- Construct an instance of the class from a - dictobject.
 - classmethod from_jira(project_key, server=None, jql=None, username=None, password_or_token=None, oauth_dict=None, client_kwargs=None, jira_client=None, connection_kwargs=None, connection_callback=None, series_kwargs=None, options_kwargs=None, chart_kwargs=None)[source]
- Create a - Chartinstance from an Atlassian JIRA project.- Note - Highcharts Gantt for Python can create a JIRA API client for you, authenticating using either the Basic Authentication or Access Token methods supported by the JIRA API. However, if you wish to use the more-involved OAuth2 handshake, you can do so yourself and either - supply an - oauth_dictargument containing the OAuth2 configuration details, or
- supply a fully-authenticated - jira_client
 - The reason for this is because the OAuth2 handshake has various permutations involving redirects, token refreshes, etc. which are outside the scope of the Highcharts Gantt for Python library, and if you are integrating Highcharts Gantt for Python into a larger application you are likely already facilitating the OAuth2 dance in a fashion appropriate for your use case. - Parameters:
- project_key ( - str) – The globally unique key of the Project whose tasks should be used to assemble the Gantt chart. For example,- JRA.
- The URL of the JIRA instance from which data should be retrieved. Defaults to - None, which looks for a value in the- HIGHCHARTS_JIRA_SERVERenvironment variable. If no value is found there, will then fallback to JIRA Cloud:- 'https://jira.atlasian.com'.- Note - This argument will override the comparable setting in - client_kwargsif- client_kwargsis supplied.
- jql ( - stror- None) – An optional JIRA Query Language query string to further narrow the issues returned from JIRA. Defaults to- None.
- The username to use when authenticating using either - basicor- tokenauthentication. Defaults to- None, which looks for a value in the- HIGHCHARTS_JIRA_USERNAMEenvironment variable.- Note - If - oauth2_dictis supplied, the- usernameargument will be ignored since OAuth2 authentication will be used.
- password_or_token ( - stror- None) –- The password or access token to use when authenticating using either - basicor- tokenauthentication. Defaults to- None, which looks for a vlaue in the- HIGHCHARTS_JIRA_TOKENenvironment variable.- Note - If - oauth_dictis supplied, the- password_or_tokenwill be ignored since OAuth2 authentication will be used.
- A - dictof key/value pairs providing configuration of the Oauth2 authentication details. Expected keys are:- 'access_token'
- 'access_token_secret'
- 'consumer_key'
- 'key_cert'
 - Defaults to - None.- Note - To use OAuth2 authentication, an - oauth_dictmust be supplied. If you wish to force either basic or token authentication, make sure this argument remains- None.
- client_kwargs ( - dictor- None) – An optional- dictproviding keyword arguments to use when instantiating the JIRA client.
- jira_client ( - jira.client.JIRAinstance that has been fully authenticated) – A fully-configured and fully-authenticated JIRA API client. Defaults to- None.
- connection_kwargs ( - dictor- None) – Set of keyword arugments to supply to the- DataConnectionconstructor, besides the- .toproperty which is derived from the task. Defaults to- None
- connection_callback (Callable or - None) –- A custom Python function or method which accepts two keyword arguments: - connection_target(which expects the dependency- Issueobject from the initial- Issue), and- issue(which expects the initial- Issueobject). The function should return a- DataConnectioninstance. Defaults to- None.- Tip - The - connection_callbackargument is useful if you want to customize the connection styling based on properties included in the target issue.
- series_kwargs ( - dictor- None) – Collection of additional keyword arguments to use when instantiating the- GanttSeries(besides the- dataargument, which will be determined from the JIRA issues). Defaults to- None.
 
- Returns:
- A Gantt - Chartinstance
- Return type:
- GanttSeries
- Raises:
- HighchartsDependencyError – if the jira Python library is not available in the runtime environment 
- JIRAAuthenticationError – if authentication against the JIRA server fails 
- HighchartsValueError – if both - templateand- property_column_mapare empty
 
 
 - classmethod from_js_literal(as_str_or_file, allow_snake_case: bool = True, _break_loop_on_failure: bool = False)
- Return a Python object representation of a Highcharts JavaScript object literal. - Parameters:
- as_str_or_file ( - str) – The JavaScript object literal, represented either as a- stror as a filename which contains the JS object literal.
- allow_snake_case ( - bool) – If- True, interprets- snake_casekeys as equivalent to- camelCasekeys. Defaults to- True.
- _break_loop_on_failure ( - bool) – If- True, will break any looping operations in the event of a failure. Otherwise, will attempt to repair the failure. Defaults to- False.
 
- Returns:
- A Python object representation of the Highcharts JavaScript object literal. 
- Return type:
- HighchartsMeta
 
 - classmethod from_json(as_json_or_file, allow_snake_case: bool = True)
- Construct an instance of the class from a JSON string. - Parameters:
- as_json_or_file – The JSON string for the object or the filename of a file that contains the JSON string. 
- allow_snake_case ( - bool) – If- True, interprets- snake_casekeys as equivalent to- camelCasekeys. Defaults to- True.
 
- Returns:
- A Python objcet representation of - as_json.
- Return type:
- HighchartsMeta
 
 - classmethod from_monday(board_id, api_token=None, template=None, property_column_map=None, connection_kwargs=None, connection_callback=None, series_kwargs=None, options_kwargs=None, chart_kwargs=None)[source]
- Create a - Chartinstance from a Monday.com work board.- Parameters:
- board_id ( - int) – The ID of the Monday.com board whose items should be retrieved to populate the Gantt series.
- The Monday.com API token to use when authenticating your request against the Monday.com API. Defaults to - None, which will then try to determine the token from the- MONDAY_API_TOKENenvironment variable.- Warning - If no token is either passed to the method or found in the - MONDAY_API_TOKENenvironment variable, calling this method will raise an error.
- The name of a standard Mpnday.com board template supported by Highcharts for Python. If supplied, will override the - property_column_mapargument. Defaults to- None.- Note - If - property_column_mapis set, the- templateargument will be ignored and overridden by- property_column_map.
- property_column_map ( - dictor- None) –- A - dictused to map Monday.com columns to their corresponding- GanttSeriesproperties. Keys are expected to be- GanttSeriesproperties, while values are expected to be Monday.com column field names. Defaults to- None.- Note - If - property_column_mapis supplied, its settings override the- templatesetting.
- connection_kwargs ( - dictor- None) – Set of keyword arugments to supply to the- DataConnectionconstructor, besides the- .toproperty which is derived from the task. Defaults to- None
- connection_callback (Callable or - None) –- A custom Python function or method which accepts two keyword arguments: - connection_target(which expects the dependency- dictobject from the Asana task), and- asana_task(which expects the Asana task- dictobject). The function should return a- DataConnectioninstance. Defaults to- None- Tip - The - connection_callbackargument is useful if you want to customize the connection styling based on properties included in the Asana task.
- series_kwargs ( - dictor- None) – Collection of additional keyword arguments to use when instantiating the- GanttSeries(besides the- dataargument, which will be determined from the Asana tasks). Defaults to- None.
- series_kwargs – Collection of additional keyword arguments to use when instantiating the - GanttSeries(besides the- dataargument, which will be determined from the Asana tasks). Defaults to- None.
- options_kwargs ( - dictor- None) –- An optional - dictcontaining keyword arguments that should be used when instantiating the- HighchartsOptionsinstance. Defaults to- None.- Warning - If - options_kwargscontains a- serieskey, the- seriesvalue will be overwritten. The- seriesvalue will be created from the data in- df.
- An optional - dictcontaining keyword arguments that should be used when instantiating the- Chartinstance. Defaults to- None.- Warning - If - chart_kwargscontains an- optionskey,- optionswill be overwritten. The- optionsvalue will be created from the- options_kwargsand the data in- dfinstead.
 
- Returns:
- A Gantt - Chartinstance
- Return type:
- GanttSeries
- Raises:
- HighchartsDependencyError – if the monday Python library is not available in the runtime environment 
- MondayAuthenticationError – if there is no Monday.com API token supplied 
- HighchartsValueError – if both - templateand- property_column_mapare empty
 
 
 - classmethod from_options(options, chart_kwargs=None)[source]
- Create a - Chartinstance from a- HighchartsOptionsor- HighchartsGanttOptionsobject.- Parameters:
- options ( - HighchartsOptionsor related or coercable) – The configuration options to use to instantiate the chart.
- An optional - dictcontaining keyword arguments that should be used when instantiating the instance. Defaults to- None.- Warning - If - chart_kwargscontains an- optionskey,- optionswill be overwritten by the contents of- options.
 
- Returns:
- The - Chartinstance
- Return type:
 
 - classmethod from_pandas(df, property_map, series_type, series_kwargs=None, options_kwargs=None, chart_kwargs=None)[source]
- Create a - Chartinstance whose data is populated from a pandas- DataFrame.- Parameters:
- df ( - DataFrame) – The- DataFramefrom which data should be loaded.
- property_map ( - dict) – A- dictused to indicate which data point property should be set to which column in- df. The keys in the- dictshould correspond to properties in the data point class, while the value should indicate the label for the- DataFramecolumn.
- series_type ( - str) – Indicates the series type that should be created from the data in- df.
- series_kwargs ( - dict) –- An optional - dictcontaining keyword arguments that should be used when instantiating the series instance. Defaults to- None.- Warning - If - series_kwargscontains a- datakey, its value will be overwritten. The- datavalue will be created from- dfinstead.
- options_kwargs ( - dictor- None) –- An optional - dictcontaining keyword arguments that should be used when instantiating the- HighchartsOptionsinstance. Defaults to- None.- Warning - If - options_kwargscontains a- serieskey, the- seriesvalue will be overwritten. The- seriesvalue will be created from the data in- df.
- An optional - dictcontaining keyword arguments that should be used when instantiating the- Chartinstance. Defaults to- None.- Warning - If - chart_kwargscontains an- optionskey,- optionswill be overwritten. The- optionsvalue will be created from the- options_kwargsand the data in- dfinstead.
 
- Returns:
- A - Chartinstance with its data populated from the data in- df.
- Return type:
- Raises:
- HighchartsPandasDeserializationError – if - property_mapreferences a column that does not exist in the data frame
- if pandas is not available in the runtime environment 
 
 
 - classmethod from_pyspark(df, property_map, series_type, series_kwargs=None, options_kwargs=None, chart_kwargs=None)[source]
- Create a - Chartinstance whose data is populated from a PySpark- DataFrame.- Parameters:
- df ( - DataFrame) – The- DataFramefrom which data should be loaded.
- property_map ( - dict) – A- dictused to indicate which data point property should be set to which column in- df. The keys in the- dictshould correspond to properties in the data point class, while the value should indicate the label for the- DataFramecolumn.
- series_type ( - str) – Indicates the series type that should be created from the data in- df.
- series_kwargs ( - dict) –- An optional - dictcontaining keyword arguments that should be used when instantiating the series instance. Defaults to- None.- Warning - If - series_kwargscontains a- datakey, its value will be overwritten. The- datavalue will be created from- dfinstead.
- options_kwargs ( - dictor- None) –- An optional - dictcontaining keyword arguments that should be used when instantiating the- HighchartsOptionsinstance. Defaults to- None.- Warning - If - options_kwargscontains a- serieskey, the- seriesvalue will be overwritten. The- seriesvalue will be created from the data in- df.
- An optional - dictcontaining keyword arguments that should be used when instantiating the- Chartinstance. Defaults to- None.- Warning - If - chart_kwargscontains an- optionskey,- optionswill be overwritten. The- optionsvalue will be created from the- options_kwargsand the data in- dfinstead.
 
- Returns:
- A - Chartinstance with its data populated from the data in- df.
- Return type:
- Raises:
- HighchartsPySparkDeserializationError – if - property_mapreferences a column that does not exist in the data frame
- if PySpark is not available in the runtime environment 
 
 
 - classmethod from_series(*series, kwargs=None)[source]
- Creates a new - Chartinstance populated with- series.- Parameters:
- series (one or more - SeriesBaseor- IndicatorSeriesBasecoercable) – One or more series instances (descended from- SeriesBase) or an instance (e.g.- dict,- str, etc.) coercable to one
- kwargs ( - dict) –- Other properties to use as keyword arguments for the instance to be created. - Warning - If - kwargssets the- options.seriesproperty, that setting will be overridden by the contents of- series.
 
- Returns:
- A new - Chartinstance
- Return type:
 
 - to_dict() dict
- Generate a - dictrepresentation of the object compatible with the Highcharts JavaScript library.- Note - The - dictrepresentation has a property structure and naming convention that is intentionally consistent with the Highcharts JavaScript library. This is not Pythonic, but it makes managing the interplay between the two languages much, much simpler.
 - to_js_literal(filename=None, encoding='utf-8') str | None[source]
- Return the object represented as a - strcontaining the JavaScript object literal.- Parameters:
 - Note - If - variable_nameis set, will render a string as a new JavaScript instance invocation in the (pseudo-code) form:- new VARIABLE_NAME = new Chart(...); - If - variable_nameis not set, will simply return the- new Chart(...)portion in the string.
 - to_json(filename=None, encoding='utf-8')
- Generate a JSON string/byte string representation of the object compatible with the Highcharts JavaScript library. - Note - This method will either return a standard - stror a- bytesobject depending on the JSON serialization library you are using. For example, if your environment has orjson, the result will be a- bytesrepresentation of the string.- Parameters:
- Returns:
- A JSON representation of the object compatible with the Highcharts library. 
- Return type:
 
 - static trim_dict(untrimmed: dict, to_json: bool = False) dict
- Remove keys from - untrimmedwhose values are- Noneand convert values that have- .to_dict()methods.
 - static trim_iterable(untrimmed, to_json=False)
- Convert any - EnforcedNullTypevalues in- untrimmedto- 'null'.
 - update_series(*series, add_if_unmatched=False)[source]
- Replace existing series with the new versions supplied in - series, matching them based on their- .idproperty.- Parameters:
- series (one or more - SeriesBaseor coercable) – One or more series instances (descended from- SeriesBase) or an instance (e.g.- dict,- str, etc.) coercable to one
- add_if_unmatched ( - bool) – If- True, will add a series that does not have a match. If- False, will raise a- HighchartsMissingSeriesErrorif a series does not have a match on the chart. Defaults to- False.
 
 
 - property callback: CallbackFunction | None
- A (JavaScript) function that is run when the chart has loaded and all external images have been loaded. Defaults to - None.- Note - Setting this proprety is equivalent to setting a value for - ChartOptions.events.load- Return type:
- CallbackFunctionor- None
 
 - property container: str | None
- The - idof the- <div>element in which your Highcharts chart should be rendered. Defaults to- None.
 - property is_gantt_chart: bool
- If - True, indicates that the chart should be rendered as a Highcharts Gantt chart. If- False, the chart will be rendered using the standard Highcharts JS constructor. Defaults to- False.- Return type:
 
 - property is_stock_chart: bool
- If - True, indicates that the chart should be rendered as a Highcharts Stock chart. If- False, the chart will be rendered using the standard Highcharts JS constructor. Defaults to- False.- Return type:
 
 - property options: HighchartsOptions | HighchartsGanttOptions | HighchartsStockOptions | None
- The Python representation of the Highcharts Gantt - optionsconfiguration object Defaults to- None.- Return type:
- HighchartsOptionsor- HighchartsGanttOptionsor- None
 
 - property variable_name: str | None
- The name given to the (JavaScript) variable to which the (JavaScript) Chart instance wil be assigned. Defaults to - None.- Note - When the - Chartobject is converted to JavaScript code, the (JavaScript) chart instance is assigned to a variable in your JavaScript code. In the example code below, the Chart instance is assigned to a- variable_nameof- chart1:- var chart1 = Highcharts.Chart('myTargetDiv', {});