org.xwiki.rendering.macro.chart
Interface ChartDataSource


@Role
public interface ChartDataSource

Interface for defining various data sources for charts.

Since:
2.0M1
Version:
$Id: 0ae7b685011f0fd6d100acb3c4743b10952c68ba $

Method Summary
 ChartModel buildModel(String macroContent, Map<String,String> sourceParameters)
          Decodes the given macroContent / extraParams and builds a ChartModel.
 

Method Detail

buildModel

ChartModel buildModel(String macroContent,
                      Map<String,String> sourceParameters)
                      throws org.xwiki.rendering.macro.MacroExecutionException
Decodes the given macroContent / extraParams and builds a ChartModel.

Parameters:
macroContent - content of the macro.
sourceParameters - parameters provided for the source.
Returns:
a ChartModel corresponding to the parameters passed in.
Throws:
org.xwiki.rendering.macro.MacroExecutionException - if something goes wrong while decoding source / parameters.


Copyright © 2004-2013 XWiki. All Rights Reserved.