Make sure these boxes are checked before submitting your issue - thank you!
{"GIT_SHA": "", "version": "0.21.1"}

My data are whole integers in my query.
Having decimals does not make sense in this case.
I made search in the source codes and found some formatting in nvd3_vis.js
and a pie chart case.
env/lib/python2.7/site-packages/superset/static/assets/visualizations/nvd3_vis.js
case 'pie':
...
// chart.valueFormat(f);
chart.valueFormat('.1s');
...
else if (fd.pie_label_type === 'key_value') {
//chart.labelType(d => ${d.data.x}: ${d3.format('.3s')(d.data.y)});
chart.labelType(d => ${d.data.x}: ${d3.format('.1s')(d.data.y)});
}
But the pie charts are still displaying the decimals
Do I need to change anything else?
Thanks in adv.
You have to read the documentation on how to do your own build.
You need to use the development version. Files in the assets folder are managed by webpack. You cannot modify using the production server (or debug server). They are minified and Superset loads it from the dist/ subdir, not from the assets directory
See https://github.com/apache/incubator-superset/blob/master/CONTRIBUTING.md on how to setup.
Maybe an options to .1s can be added in the control defined in assets/javascripts/explore/stores/controls.jsx so it its available for anyone
@raffas
Thanks for the link and indepth background review.
Basically, all I need to do then is run the command line that compiles the production / optimized js & css
either
$ npm run prod
or
$ npm run dev
or do I have to run yarn first?
$ cd superset/assets/
npm install that is faster and more deterministic$ npm install -g yarn
$ yarn
$ npm run dev
Yes, you have to run yarn first, then the command. It installs all the dependency... a lot of dependency
But I suggest you to start from a new virtual env with a fresh cloned copy of superset master, either from the official repository or from your forked copy. I'm unsure if the procedure works on superset installed from python package
Note: npm run dev builds all the files that are required, but they are not minified, so some files are about 40M and you you are not on a local lan, you experience some huge delays when you load the various pages.
I recommend using npm run dev-fast, we should make that the default...
Version 0.28.1 also has this problem pie chart, the d3-format can be configured in metrics of datasource editor, but it does not work.