Visifire

This extension requires a trial or active MindTouch Deki Enterprise license.

 

This extension allows you to embed data charts.  Related Links: Extension Overview, DekiScript Overview, Extension Demos.

Assembly: mindtouch.visifire
SID: sid://mindtouch.com/ent/2008/05/visifire
License: Enterprise

This service requires Deki Wiki 8.08 or later.

To enable this extension, follow these steps:

  1. Go to Service management in the Control Panel of your wiki.
  2. Under Add Service, click on Local, and select type Extension.
  3. Enter a description and the extension SID: sid://mindtouch.com/ent/2008/05/visifire
  4. Add any additional configuration settings that are required by the extension (see below).
  5. Click on add service.

Functions:


Visifire.Chart(xml, series, axisLabels) : xml

Insert a Visifire chart.  An alternative series of values can be provided as second argument.  The series can be submitted into two formats, either as a list of numbers or as a list of DataPoint values (see the Visifire reference for element names).  An optional list of axis labels can be provided as third argument.  If omitted, labels will be auto-generated.

Parameters:

Name Type Description
xml str XML chart template.  Use the Visifire Chart Designer to layout the chart.
series map Optional. Data series of values. (e.g. { Series1: [ 10, 11 ], ... } -OR- { Series1: [ { yvalue: 10 }, { yvalue: 11 } ], ... }; default: use series in chart design)
axisLabels list Optional. Labels for data series. (e.g. [ "Mon", "Tue", "Wed", ... ]; default: auto-generate labels)

Samples

  Output

To embed a Visifire chart, create a "formatted" section, then select "visifire.Chart" from the transformation drop-down:

<vc:Chart xmlns:vc="clr-namespace:Visifire.Charts;assembly=Visifire.Charts"
     Width="500" Height="300" BorderThickness="0" Theme="Theme3">
    <vc:Title Text="Global Fortune 5 Companies 2007"/>
    <vc:AxisX Title="Companies">
    </vc:AxisX>
    <vc:AxisY Title="Revenue in Million dollars">
    </vc:AxisY>
    <vc:DataSeries Name="Series1" RenderAs="Column" AxisYType="Primary">
        <vc:DataPoint AxisLabel="Wall-Mart" YValue="351139"/>
        <vc:DataPoint AxisLabel="Exxon Mobil" YValue="345254"/>
        <vc:DataPoint AxisLabel="Shell" YValue="318845"/>
        <vc:DataPoint AxisLabel="BP" YValue="274316"/>
        <vc:DataPoint AxisLabel="General Motors" YValue="207349"/>
    </vc:DataSeries>
</vc:Chart> 
chart.png

 

 

Tag page
You must login to post a comment.
Powered by MindTouch Deki v.8.08.2