Indicator ViewHelper <c:plotlychart.indicator> 

ViewHelper to include a gauge chart with Plotly.

Go to the source code of this ViewHelper: IndicatorViewHelper.php (GitHub).

Quick Test 

<c:template id="1">
EXT:sav_charts/Resources/Private/Templates/PlotlyChartsExamples/IndicatorChart.fluid"
</c:template>
Copied!

Arguments 

id
Required

true

Type
string

Chart ID

data
Required

true

Type
mixed

Data, or a reference to data

layout
Type
mixed

Layout, or a reference to layout

config
Type
mixed

Config, or a reference to config

width
Type
string
Default
600

Width value, or a reference to the width value

height
Type
string
Default
400

Height value, or a reference to the height value

Examples 

Defining an Indicator Chart 

<c:plotlycharts>
    <c:plotlychart.indicator id="1" data="data__indicatorChartData" data="data__indicatorChartData" layout="data__indicatorChartLayout" >
        ...
    </c:plotlychart.indicator>
</c:plotlycharts>
Copied!