Texera / texera

Collaborative Machine-Learning-Centric Data Analytics Using Workflows
https://texera.github.io
Apache License 2.0
163 stars 72 forks source link

Plotly Visualization Operator #2047

Closed shengquan-ni closed 10 months ago

shengquan-ni commented 1 year ago

In current Texera, we use Plotly Python package for all kinds of visualizations. Typically, this is done by the following:

  1. In a Python UDF operator, write code to add traces/lines to a plot via Plotly.
  2. Convert the plot to an HTML string in the same UDF.
  3. Pass the string to the HTML visualizer operator.

Here is one example:

截屏2023-07-10 下午10 48 34 vis1

It's good if we can get those visualizations easily by using one operator instead of coding using Python. We can extract some frequently used parameters in Plotly such as longitude latitude, x/y values, and create an operator where the user only needs to specify the column name as those parameters to get the visualization done. It is better if we can allow users to do customization without writing code.

shengquan-ni commented 10 months ago

We implemented most of the basic charts in plotly: #2112, #2099, #2097, #2088, #2087, #2086, #2082, #2075.