You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@superset.apache.org by GitBox <gi...@apache.org> on 2018/01/09 23:08:11 UTC
[GitHub] jeffreythewang opened a new pull request #4185: Add new visualization for custom X-Y axes
jeffreythewang opened a new pull request #4185: Add new visualization for custom X-Y axes
URL: https://github.com/apache/incubator-superset/pull/4185
# Summary
* Add a new visualization, **XY Line Chart** - a line chart with custom X-Y axes
* Add functionality for hiding lines between data points, to create a scatterplot-like chart
## Description
I added a new visualization for plotting data points on a line chart which allows the user to specify any column or metric of the query as the X-Y axis. It is based entirely on the query fields of `TableViz`. This way, you can easily switch between the Table View and the XY Line Chart, since they have similar form data fields. I made no changes to the query objects, and primarily made changes to the resultant pandas DataFrame. Some features include:
* Ability to specify multiple columns or metrics for the Y axis
* Ability to slice by groups of columns or metrics (for multiple series)
## Examples
#### Group-By Query (with multiple aggregations plotted on the Y-Axis)
<img width="1585" alt="groupby_query" src="https://user-images.githubusercontent.com/3317634/34746073-c2f4372c-f560-11e7-939f-a88bc0ac2547.png">
#### Generic Column Selection (with slicing)
<img width="1587" alt="slice_by_date" src="https://user-images.githubusercontent.com/3317634/34746099-dfab69da-f560-11e7-8b3c-c07248719fc4.png">
#### Scatter Plot
<img width="1584" alt="scatter" src="https://user-images.githubusercontent.com/3317634/34745581-fda0f7ea-f55e-11e7-8731-3c1dd107482e.png">
## Related Issues
https://github.com/apache/incubator-superset/issues/3769
https://github.com/apache/incubator-superset/issues/3184
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services