Advertisement
bo636

mondrian PIE example

Feb 16th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.05 KB | None | 0 0
  1. package
  2. {
  3. public class ReportClinentsPieCharm
  4. {
  5. public function ReportClinentsPieCharm()
  6. {
  7. }
  8.  
  9. private static var reportXml:String = '<config> <dataSource type="mondrian"> <proxyUrl>https://mblue.atollon.com/bi</proxyUrl> <dataSourceInfo/> <catalog>AtollonSchema.xml</catalog> <cube>Finance</cube> <binary>true</binary> </dataSource> <defaultSlice> <axes> <axis name="rows"> <hierarchy> <dimensionName>[Measures]</dimensionName> <hierarchyName>[Measures]</hierarchyName> </hierarchy> <hierarchy sort="asc"> <dimensionName>[Client]</dimensionName> <hierarchyName>[Client]</hierarchyName> </hierarchy> </axis> <axis name="columns"> <hierarchy sort="asc"> <dimensionName>[Time Dimension]</dimensionName> <hierarchyName>[Time Dimension.Time]</hierarchyName> </hierarchy> </axis> <axis name="pages"> <hierarchy sort="asc"> <dimensionName>[User]</dimensionName> <hierarchyName>[User]</hierarchyName> </hierarchy> </axis> </axes> <measures> <measure aggregation="none" active="true">[Measures].[Revenue]</measure> </measures> </defaultSlice> <style><![CDATA[]]></style> <view/> <params> <param name="configuratorActive">true</param> <param name="configuratorButton">true</param> <param name="configuratorMatchHeight">false</param> <param name="viewType">charts</param> <param name="zoom">1</param> <param name="gridTitle"/> <param name="chartTitle"/> <param name="showFilter">true</param> <param name="showDefaultSlice">true</param> <param name="showEmptyData">false</param> <param name="showFilterInCharts">true</param> <param name="showAggregations">true</param> <param name="showHierarchyCaptions">true</param> <param name="showMemberProperties">false</param> <param name="chartAutoRange">false</param> <param name="chartMultipleMeasures">false</param> <param name="showChartZeroValues">true</param> <param name="sorting">on</param> <param name="showHeaders">true</param> <param name="showReportFiltersArea">true</param> <param name="editing">false</param> <param name="highlightUpdates">true</param> <param name="drillThrough">true</param> <param name="fitGridlines">false</param> <param name="classicView">false</param> <param name="flatView">false</param> <param name="drillAll">false</param> <param name="expandAll">false</param> <param name="showTotals">true</param> <param name="showHierarchies">true</param> <param name="showGrandTotals">on</param> <param name="datePattern">dd/MM/yyyy</param> <param name="dateTimePattern">dd/MM/yyyy HH:mm:ss</param> <param name="showChartsWarning">true</param> <param name="showChartLegendButton">false</param> <param name="saveAllFormats">false</param> <param name="showChartMeasures">true</param> <param name="pdfFontUrl"/> <param name="showFiltersExcel">false</param> <param name="defaultHierarchySortName">asc</param> <param name="ignoreQuotedLineBreaks">true</param> <param name="useOlapFormatting">false</param> <param name="showCalculatedValuesButton">true</param> <param name="showOutdatedDataAlert">false</param> <param name="pdfHeader"><![CDATA[]]></param> <param name="pdfFooter"><![CDATA[]]></param> <param name="htmlFooter"><![CDATA[]]></param> <param name="htmlHeader"><![CDATA[]]></param> <param name="chartType" activeMeasure="" pieDataIndex="2">pie</param> <param name="localSettingsUrl"><![CDATA[]]></param> </params> <conditions> <condition measure="[Measures].[Discount]"> <![CDATA[if(AND(#value > 2000, #value < 4000), "trueStyle")]]> <trueStyle><![CDATA[{"overIcon":"()","fontFamily":"Tahoma","leftIcon":"()","underline":false,"align":null,"textIndent":0,"backgroundColor":"0xff9966","fontWeight":"normal","useHandCursor":false,"color":"0xffffff","fontSize":13,"rightIcon":"()","textAlign":"right","fontStyle":"normal"}]]></trueStyle> <falseStyle><![CDATA[{"overIcon":"()","fontFamily":"Tahoma","leftIcon":"()","underline":false,"align":null,"textIndent":0,"backgroundColor":"0xffffff","fontWeight":"normal","useHandCursor":false,"color":"0x000000","fontSize":11,"rightIcon":"()","textAlign":"right","fontStyle":"normal"}]]></falseStyle> </condition> </conditions> </config>';
  10. public static function getReport():XML
  11. {
  12. return new XML(reportXml);
  13. }
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement