.. DO NOT EDIT.
.. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY.
.. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE:
.. "_examples/plotly/plot_main07_parallel_v1.py"
.. LINE NUMBERS ARE GIVEN BELOW.

.. only:: html

    .. note::
        :class: sphx-glr-download-link-note

        Click :ref:`here <sphx_glr_download__examples_plotly_plot_main07_parallel_v1.py>`
        to download the full example code

.. rst-class:: sphx-glr-example-title

.. _sphx_glr__examples_plotly_plot_main07_parallel_v1.py:


07. Plot Parallel
============================

This example plots a parallel graph.

.. GENERATED FROM PYTHON SOURCE LINES 8-61



.. raw:: html
    :file: images/sphx_glr_plot_main07_parallel_v1_001.html





.. code-block:: default
   :lineno-start: 9


    import plotly.graph_objects as go
    import pandas as pd

    from plotly.io import show

    try:
        __file__
        TERMINAL = True
    except:
        TERMINAL = False


    # Load
    df = pd.read_csv("https://raw.githubusercontent.com/bcdunbar/datasets/master/parcoords_data.csv")

    # Visualize
    if TERMINAL:
        print("\nData:")
        print(df)
    df

    # Show
    fig = go.Figure(data=
        go.Parcoords(
            line = dict(color = df['colorVal'],
                       colorscale = 'Electric',
                       showscale = True,
                       cmin = -4000,
                       cmax = -100),
            dimensions = list([
                dict(range = [32000,227900],
                     constraintrange = [100000,150000],
                     label = "Block Height", values = df['blockHeight']),
                dict(range = [0,700000],
                     label = 'Block Width', values = df['blockWidth']),
                dict(tickvals = [0,0.5,1,2,3],
                     ticktext = ['A','AB','B','Y','Z'],
                     label = 'Cyclinder Material', values = df['cycMaterial']),
                dict(range = [-1,4],
                     tickvals = [0,1,2,3],
                     label = 'Block Material', values = df['blockMaterial']),
                dict(range = [134,3154],
                     visible = True,
                     label = 'Total Weight', values = df['totalWeight']),
                dict(range = [9,19984],
                     label = 'Assembly Penalty Wt', values = df['assemblyPW']),
                dict(range = [49000,568000],
                     label = 'Height st Width', values = df['HstW'])])
        )
    )

    # Show
    show(fig)

.. rst-class:: sphx-glr-timing

   **Total running time of the script:** ( 0 minutes  1.854 seconds)


.. _sphx_glr_download__examples_plotly_plot_main07_parallel_v1.py:


.. only :: html

 .. container:: sphx-glr-footer
    :class: sphx-glr-footer-example



  .. container:: sphx-glr-download sphx-glr-download-python

     :download:`Download Python source code: plot_main07_parallel_v1.py <plot_main07_parallel_v1.py>`



  .. container:: sphx-glr-download sphx-glr-download-jupyter

     :download:`Download Jupyter notebook: plot_main07_parallel_v1.ipynb <plot_main07_parallel_v1.ipynb>`


.. only:: html

 .. rst-class:: sphx-glr-signature

    `Gallery generated by Sphinx-Gallery <https://sphinx-gallery.github.io>`_