Difference between revisions of "2012 Winter Project Week:Charts"

From NAMIC Wiki
Jump to: navigation, search
(Created page with '__NOTOC__ <gallery> Image:PW-SLC2012.png|Projects List Image:genuFAp.jpg|Scatter plot of the original FA data through the genu of the corpus…')
 
 
(6 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
<gallery>
 
<gallery>
 
Image:PW-SLC2012.png|[[2012_Winter_Project_Week#Projects|Projects List]]
 
Image:PW-SLC2012.png|[[2012_Winter_Project_Week#Projects|Projects List]]
Image:genuFAp.jpg|Scatter plot of the original FA data through the genu of the corpus callosum of a normal brain.
+
Image:AnEarlyChartView.png|A chart displayed at the end of Project Week.
Image:genuFA.jpg|Regression of FA data; solid line represents the mean and dotted lines the standard deviation.
+
Image:ALaterChartView.png|A chart from after Project Week with chart resizing, packing, and titles.
 +
Image:ABarChartView.png|A bar chart from after Project Week.
 
</gallery>
 
</gallery>
  
Line 41: Line 42:
 
<h3>Progress</h3>
 
<h3>Progress</h3>
 
Initial ChartNode, ChartViewNode, ChartControllerWidget (placeholder), ChartView, and ChartWidget have been constructed. Charts can be defined in MRML and presented in the ChartView.
 
Initial ChartNode, ChartViewNode, ChartControllerWidget (placeholder), ChartView, and ChartWidget have been constructed. Charts can be defined in MRML and presented in the ChartView.
 +
 +
SuperBuild support to download jqPlot.
 +
 +
jqPlot packaged within Slicer4 as a Qt Resources
 +
 +
Defined several Layouts that include ChartViews: Conventional Quantitative, Four-up Quantitative.
  
 
<h3>Progress since Project Week</h3>
 
<h3>Progress since Project Week</h3>
 +
* Chart resizing with window
 
* Chart properties at the Chart and Array level
 
* Chart properties at the Chart and Array level
 
** Chart type, show lines, show grid, show legend, title, x-axis label, y-axis label
 
** Chart type, show lines, show grid, show legend, title, x-axis label, y-axis label

Latest revision as of 21:22, 2 February 2012

Home < 2012 Winter Project Week:Charts

Key Investigators

  • GE: Jim Miller, Kedar Patwardhan
  • Isomics: Steve Pieper

Objective

Develop a view for charting that can be packed in a Slicer Layout. Charts will be able to display line graphs, bar graphs, histograms, etc.


Approach, Plan

The approach is to model the new view after the SliceViews and ThreeDViews. This requires

  • ChartViewNode - one to one with a ChartView
  • ChartNode - contains a list to DoubleArrayNodes to display in the chart and contains the chart properties
  • ChartWidget - contains a controller and chart view
  • ChartViewControllerWidget - popup to control the content and properties of a chart
  • ChartView - widget to display the actual chart

We will leverage a Javascript plotting library called jqplot to increase the speed of development. This library will only be used inside the ChartView and will not be exposed to the rest of Slicer. Thus, the whole charting infrastructure will be pure MRML and Qt. Other charting libraries, say VTK, could also be implemented when we need to trade off style and speed.

To use jqplot, the initial ChartView will be a subclass of qWebView.


Progress

Initial ChartNode, ChartViewNode, ChartControllerWidget (placeholder), ChartView, and ChartWidget have been constructed. Charts can be defined in MRML and presented in the ChartView.

SuperBuild support to download jqPlot.

jqPlot packaged within Slicer4 as a Qt Resources

Defined several Layouts that include ChartViews: Conventional Quantitative, Four-up Quantitative.

Progress since Project Week

  • Chart resizing with window
  • Chart properties at the Chart and Array level
    • Chart type, show lines, show grid, show legend, title, x-axis label, y-axis label
  • Chart types: line and bar
  • ChartController to modify parameters
  • Chart zooming
  • dataPointClicked() signal - Qt signal that fires when user clicks on a data point

Delivery Mechanism

Integrated directly into Slicer4

References