superset icon indicating copy to clipboard operation
superset copied to clipboard

How to add new visualization type??

Open Subhash9325 opened this issue 9 years ago • 7 comments

Make sure these boxes are checked before submitting your issue - thank you!

  • [x] I have checked the superset logs for python stacktraces and included it here as text if any
  • [x] I have reproduced the issue with at least the latest released version of superset
  • [x] I have checked the issue tracker for the same issue and I haven't found one similar

Superset version

Expected results

Actual results

Steps to reproduce

Subhash9325 avatar Jun 14 '17 03:06 Subhash9325

You can take a look at this PR https://github.com/airbnb/superset/pull/2708 especially:

  • superset/assets/backendSync.json
  • superset/assets/javascripts/explorev2/stores/controls.jsx
  • superset/assets/visualizations/main.js
  • superset/viz.py

Plus of course your specific js.

xrmx avatar Jun 14 '17 07:06 xrmx

Thanks xrmx

Subhash9325 avatar Jun 14 '17 08:06 Subhash9325

For the record superset/assets/backendSync.json is generated with the npm run backend-sync command

mistercrunch avatar Jun 15 '17 20:06 mistercrunch

@mistercrunch how move chart - function works...?? i know its using react, react-redux... can u explain??

Subhash9325 avatar Jun 20 '17 06:06 Subhash9325

"move chart"?

mistercrunch avatar Jun 20 '17 06:06 mistercrunch

@mistercrunch or @xrmx how charts are moving inside dashboards??

Subhash9325 avatar Jun 20 '17 10:06 Subhash9325

@mistercrunch > For the record superset/assets/backendSync.json is generated with the npm run backend-sync command

(senv) [root@blade02 assets]# pwd /root/incubator-superset/superset/assets (senv) [root@blade02 assets]# npm run backend-sync npm ERR! missing script: backend-sync

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2020-02-05T11_49_42_150Z-debug.log

I run the command but this error show up. Where should i run this command? Thanks

mgulaydin avatar Feb 05 '20 11:02 mgulaydin