inject_plotly_chart
Inject a Plotly chart into a Hex notebook cell with automatic design-system styling. Define chart type, dataframe, and column mappings to generate the chart.
Instructions
Write a fully styled Plotly chart into a Hex Python cell. Design system (dark theme, color palette, typography) is applied automatically.
chart_type: line | bar | scatter | area | histogram | box | heatmap | funnel | treemap dataframe_var: name of the DataFrame variable already defined in the notebook x_col / y_col: column names for axes color_col: optional column for series coloring extra_kwargs: any additional px.chart() keyword args as a string, e.g. 'barmode="group"' auto_run: if True, immediately triggers run_and_wait to push to app view
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| x_col | Yes | ||
| y_col | Yes | ||
| height | No | ||
| cell_id | Yes | ||
| auto_run | No | ||
| color_col | No | ||
| chart_type | Yes | ||
| project_id | Yes | ||
| extra_kwargs | No | ||
| dataframe_var | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |