@@ -49,6 +49,7 @@ define([
49
49
kde : '' ,
50
50
stat : '' ,
51
51
showValues : false ,
52
+ showValuesPrecision : '' ,
52
53
// axes options
53
54
x_limit_from : '' ,
54
55
x_limit_to : '' ,
@@ -705,7 +706,8 @@ define([
705
706
706
707
generateCode ( preview = false ) {
707
708
let {
708
- chartType, data, x, y, setXY, hue, kde, stat, showValues, userOption= '' ,
709
+ chartType, data, x, y, setXY, hue, kde, stat, showValues, showValuesPrecision,
710
+ userOption= '' ,
709
711
x_limit_from, x_limit_to, y_limit_from, y_limit_to,
710
712
xticks, xticks_label, xticks_rotate, removeXticks,
711
713
yticks, yticks_label, yticks_rotate, removeYticks,
@@ -851,7 +853,11 @@ define([
851
853
852
854
if ( showValues && showValues === true ) {
853
855
code . appendLine ( 'ax = ' + generatedCode ) ;
854
- code . appendLine ( "vp_seaborn_show_values(ax)" ) ;
856
+ code . append ( "vp_seaborn_show_values(ax" ) ;
857
+ if ( showValuesPrecision !== '' ) {
858
+ code . appendFormat ( ", precision={0}" , showValuesPrecision ) ;
859
+ }
860
+ code . appendLine ( ")" ) ;
855
861
} else {
856
862
code . appendLine ( generatedCode ) ;
857
863
}
0 commit comments