[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/plugins/chartshape
From:       Johannes Simon <johannes.simon () gmail ! com>
Date:       2010-10-21 13:12:23
Message-ID: 20101021131223.D251CAC897 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1188119 by jsimon:

Do not show data points in line diagrams for which there's no value (aka NAN) in the model

 M  +4 -0      Axis.cpp  


--- trunk/koffice/plugins/chartshape/Axis.cpp #1188118:1188119
@@ -541,6 +541,10 @@
     attributes.setEnabled( plotArea->isThreeD() );
     kdLineDiagram->setThreeDLineAttributes( attributes );
 
+    KDChart::LineAttributes lineAttr = kdLineDiagram->lineAttributes();
+    lineAttr.setMissingValuesPolicy( KDChart::LineAttributes::MissingValuesHideSegments );
+    kdLineDiagram->setLineAttributes( lineAttr );
+
     plotArea->parent()->legend()->kdLegend()->addDiagram( kdLineDiagram );
 }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic