betodealmeida opened a new pull request #4819: Visualization for multiple line 
charts
URL: https://github.com/apache/incubator-superset/pull/4819
 
 
   This PR adds a new viz type, `line_multi`. It's similar to the Deck.gl 
multi, in that it combines different saved charts (of lines) into a single 
chart. Here's an example combining two charts, one of them with a group by:
   
   <img width="1680" alt="screen shot 2018-04-12 at 6 11 04 pm" 
src="https://user-images.githubusercontent.com/1534870/38711855-0e6be488-3e7d-11e8-8d42-ee86645a9e1e.png";>
   
   <img width="1680" alt="screen shot 2018-04-12 at 6 11 12 pm" 
src="https://user-images.githubusercontent.com/1534870/38711859-11c47208-3e7d-11e8-992d-ffcb5dd6e48b.png";>
   
   The viz works by fetching all the data for each chart in parallel (in 
Javascript), and passing the payload to the `nvd3Vis` function. Different time 
series are padded with `null` at the edges to bypass a bug in `multiChart` when 
timeseries have different ranges for `x`.
   
   One thing I did in this PR was add a `sectionOverrides` config in 
`visTypes.js`, so that the datasource selector is not shown in this viz (I'll 
add it to the Deck.gl multi in a next PR, or I can do it in this one).

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to