.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "recipes/heatmap_chart/plot_heatmap_chart.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_recipes_heatmap_chart_plot_heatmap_chart.py: Basic Heatmap Chart --------------------------- Generate a heatmap chart across two categorical dimensions with a ``z_axis`` representing the value at each category pair. The heatmap chart will be a table-like visualization where each table cell maps to a category pair and is colored based on a ``colorscale`` - The ``data`` must have one categorical column (``category_column_name``) that represents one dimension of categories and every other column of the data is a separate category on the other dimension to be compared against. - The ``z_axis`` is required to customize how values are displayed in the heatmap - The ``colorscale`` can be changed to format cells with a different set of colors. .. GENERATED FROM PYTHON SOURCE LINES 13-25 .. raw:: html


.. code-block:: Python import pandas as pd from visualization_toolkit.helpers.plotly import heatmap_chart, axis, series fig = heatmap_chart( pdf, category_column_name="fiscal_qy", z_axis=axis(label="Downloads", axis_type="number"), ) fig .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.011 seconds) .. _sphx_glr_download_recipes_heatmap_chart_plot_heatmap_chart.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_heatmap_chart.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_heatmap_chart.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_heatmap_chart.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_