Skip to content

Commit 8bbddf8

Browse files
committed
add data sets
1 parent c8fe294 commit 8bbddf8

23 files changed

+435
-405
lines changed

introduction_ramcharts/advance.html

+9-8
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@
159159
<li class="litoc"><a class="toc-item" href="amPie.html">Pie</a></li>
160160
<li class="litoc"><a class="toc-item" href="amRadar.html">Radar</a></li>
161161
<li class="litoc"><a class="toc-item" href="amSolidGauge.html">SolidGauge</a></li>
162+
<li class="litoc"><a class="toc-item" href="amStockMultiSet.html">Multi data sets</a></li>
162163
<li class="litoc"><a class="toc-item" href="amTimeSeries.html">Time Series</a></li>
163164
<li class="litoc"><a class="toc-item" href="amWaterfall.html">Waterfall</a></li>
164165
<li class="litoc"><a class="toc-item" href="amWind.html">Wind</a></li>
@@ -209,8 +210,8 @@ <h2>Custom export</h2>
209210
setLegend(position = &quot;bottom&quot;, useMarkerColorForLabels = TRUE) %&gt;&gt;%
210211
setExport(enabled = TRUE) %&gt;&gt;%
211212
plot()</code></pre>
212-
<div id="htmlwidget-1005da2ce4510acdc0e3" style="width:100%;height:480px;" class="ramcharts_base html-widget"></div>
213-
<script type="application/json" data-for="htmlwidget-1005da2ce4510acdc0e3">{"x":{"chartData":{"valueField":"gdp","titleField":"country","startDuration":0,"export":{"enabled":true},"dataProvider":[{"country":"China","gdp":18.976},{"country":"United States","gdp":18.125},{"country":"India","gdp":7.997},{"country":"Japan","gdp":4.843},{"country":"Germany","gdp":3.815},{"country":"Russia","gdp":3.458},{"country":"Brazil","gdp":3.259},{"country":"Indonesia","gdp":2.84},{"country":"United Kingdom","gdp":2.641},{"country":"France","gdp":2.634}],"legend":{"position":"bottom","useMarkerColorForLabels":true},"type":"pie"},"background":"#ffffff","listeners":null,"axes_listeners":null,"axes_listenersIndices":null,"categoryAxis_listeners":null,"chartCursor_listeners":null,"dataSetSelector_listeners":null,"legend_listeners":null,"panels_listeners":null,"panels_listenersIndices":null,"periodSelector_listeners":null,"valueAxes_listeners":null,"valueAxes_listenersIndices":null,"group":null},"evals":[],"jsHooks":[]}</script>
213+
<div id="htmlwidget-dec5461f1d1f6e1c2a5f" style="width:100%;height:480px;" class="ramcharts_base html-widget"></div>
214+
<script type="application/json" data-for="htmlwidget-dec5461f1d1f6e1c2a5f">{"x":{"chartData":{"valueField":"gdp","titleField":"country","startDuration":0,"export":{"enabled":true},"dataProvider":[{"country":"China","gdp":18.976},{"country":"United States","gdp":18.125},{"country":"India","gdp":7.997},{"country":"Japan","gdp":4.843},{"country":"Germany","gdp":3.815},{"country":"Russia","gdp":3.458},{"country":"Brazil","gdp":3.259},{"country":"Indonesia","gdp":2.84},{"country":"United Kingdom","gdp":2.641},{"country":"France","gdp":2.634}],"legend":{"position":"bottom","useMarkerColorForLabels":true},"type":"pie"},"background":"#ffffff","listeners":null,"axes_listeners":null,"axes_listenersIndices":null,"categoryAxis_listeners":null,"chartCursor_listeners":null,"dataSetSelector_listeners":null,"legend_listeners":null,"panels_listeners":null,"panels_listenersIndices":null,"periodSelector_listeners":null,"valueAxes_listeners":null,"valueAxes_listenersIndices":null,"group":null},"evals":[],"jsHooks":[]}</script>
214215
<p>By default, the chart will contains all the JS plugins for exporting, annotating, printing… If you don’t want all of these features you just have to customize the property “menu”:</p>
215216
<div id="example-1" class="section level3">
216217
<h3>Example 1</h3>
@@ -232,8 +233,8 @@ <h3>Example 1</h3>
232233
setLegend(position = &quot;bottom&quot;, useMarkerColorForLabels = TRUE) %&gt;&gt;%
233234
setExport(enabled = TRUE, menu = menu_obj) %&gt;&gt;%
234235
plot()</code></pre>
235-
<div id="htmlwidget-f350910983db7158bc19" style="width:100%;height:480px;" class="ramcharts_base html-widget"></div>
236-
<script type="application/json" data-for="htmlwidget-f350910983db7158bc19">{"x":{"chartData":{"valueField":"gdp","titleField":"country","startDuration":0,"export":{"enabled":true,"menu":[{"format":"JPG","label":"Save as JPG","title":"Export chart to JPG"},{"format":"PNG","label":"Save as PNG","title":"Export chart to PNG"}]},"dataProvider":[{"country":"China","gdp":18.976},{"country":"United States","gdp":18.125},{"country":"India","gdp":7.997},{"country":"Japan","gdp":4.843},{"country":"Germany","gdp":3.815},{"country":"Russia","gdp":3.458},{"country":"Brazil","gdp":3.259},{"country":"Indonesia","gdp":2.84},{"country":"United Kingdom","gdp":2.641},{"country":"France","gdp":2.634}],"legend":{"position":"bottom","useMarkerColorForLabels":true},"type":"pie"},"background":"#ffffff","listeners":null,"axes_listeners":null,"axes_listenersIndices":null,"categoryAxis_listeners":null,"chartCursor_listeners":null,"dataSetSelector_listeners":null,"legend_listeners":null,"panels_listeners":null,"panels_listenersIndices":null,"periodSelector_listeners":null,"valueAxes_listeners":null,"valueAxes_listenersIndices":null,"group":null},"evals":[],"jsHooks":[]}</script>
236+
<div id="htmlwidget-f24443377bb31b86ef30" style="width:100%;height:480px;" class="ramcharts_base html-widget"></div>
237+
<script type="application/json" data-for="htmlwidget-f24443377bb31b86ef30">{"x":{"chartData":{"valueField":"gdp","titleField":"country","startDuration":0,"export":{"enabled":true,"menu":[{"format":"JPG","label":"Save as JPG","title":"Export chart to JPG"},{"format":"PNG","label":"Save as PNG","title":"Export chart to PNG"}]},"dataProvider":[{"country":"China","gdp":18.976},{"country":"United States","gdp":18.125},{"country":"India","gdp":7.997},{"country":"Japan","gdp":4.843},{"country":"Germany","gdp":3.815},{"country":"Russia","gdp":3.458},{"country":"Brazil","gdp":3.259},{"country":"Indonesia","gdp":2.84},{"country":"United Kingdom","gdp":2.641},{"country":"France","gdp":2.634}],"legend":{"position":"bottom","useMarkerColorForLabels":true},"type":"pie"},"background":"#ffffff","listeners":null,"axes_listeners":null,"axes_listenersIndices":null,"categoryAxis_listeners":null,"chartCursor_listeners":null,"dataSetSelector_listeners":null,"legend_listeners":null,"panels_listeners":null,"panels_listenersIndices":null,"periodSelector_listeners":null,"valueAxes_listeners":null,"valueAxes_listenersIndices":null,"group":null},"evals":[],"jsHooks":[]}</script>
237238
</div>
238239
<div id="example-2" class="section level3">
239240
<h3>Example 2</h3>
@@ -262,8 +263,8 @@ <h3>Example 2</h3>
262263
setLegend(position = &quot;bottom&quot;, useMarkerColorForLabels = TRUE) %&gt;&gt;%
263264
setExport(enabled = TRUE, menu = menu_obj) %&gt;&gt;%
264265
plot()</code></pre>
265-
<div id="htmlwidget-3e95da13af9215a8a14d" style="width:100%;height:480px;" class="ramcharts_base html-widget"></div>
266-
<script type="application/json" data-for="htmlwidget-3e95da13af9215a8a14d">{"x":{"chartData":{"valueField":"gdp","titleField":"country","startDuration":0,"export":{"enabled":true,"menu":[{"class":"export-main","menu":[{"label":"Download","menu":["PNG","JPG","CSV"]},{"label":"Annotate","action":"draw","menu":[{"class":"export-drawing","menu":["PNG","JPG"]}]}]}]},"dataProvider":[{"country":"China","gdp":18.976},{"country":"United States","gdp":18.125},{"country":"India","gdp":7.997},{"country":"Japan","gdp":4.843},{"country":"Germany","gdp":3.815},{"country":"Russia","gdp":3.458},{"country":"Brazil","gdp":3.259},{"country":"Indonesia","gdp":2.84},{"country":"United Kingdom","gdp":2.641},{"country":"France","gdp":2.634}],"legend":{"position":"bottom","useMarkerColorForLabels":true},"type":"pie"},"background":"#ffffff","listeners":null,"axes_listeners":null,"axes_listenersIndices":null,"categoryAxis_listeners":null,"chartCursor_listeners":null,"dataSetSelector_listeners":null,"legend_listeners":null,"panels_listeners":null,"panels_listenersIndices":null,"periodSelector_listeners":null,"valueAxes_listeners":null,"valueAxes_listenersIndices":null,"group":null},"evals":[],"jsHooks":[]}</script>
266+
<div id="htmlwidget-22202396a6a159c7b0b5" style="width:100%;height:480px;" class="ramcharts_base html-widget"></div>
267+
<script type="application/json" data-for="htmlwidget-22202396a6a159c7b0b5">{"x":{"chartData":{"valueField":"gdp","titleField":"country","startDuration":0,"export":{"enabled":true,"menu":[{"class":"export-main","menu":[{"label":"Download","menu":["PNG","JPG","CSV"]},{"label":"Annotate","action":"draw","menu":[{"class":"export-drawing","menu":["PNG","JPG"]}]}]}]},"dataProvider":[{"country":"China","gdp":18.976},{"country":"United States","gdp":18.125},{"country":"India","gdp":7.997},{"country":"Japan","gdp":4.843},{"country":"Germany","gdp":3.815},{"country":"Russia","gdp":3.458},{"country":"Brazil","gdp":3.259},{"country":"Indonesia","gdp":2.84},{"country":"United Kingdom","gdp":2.641},{"country":"France","gdp":2.634}],"legend":{"position":"bottom","useMarkerColorForLabels":true},"type":"pie"},"background":"#ffffff","listeners":null,"axes_listeners":null,"axes_listenersIndices":null,"categoryAxis_listeners":null,"chartCursor_listeners":null,"dataSetSelector_listeners":null,"legend_listeners":null,"panels_listeners":null,"panels_listenersIndices":null,"periodSelector_listeners":null,"valueAxes_listeners":null,"valueAxes_listenersIndices":null,"group":null},"evals":[],"jsHooks":[]}</script>
267268
<p>For more information you can refer to the official documentation <a href="./www/docs/export.html">here</a>.</p>
268269
</div>
269270
</div>
@@ -279,8 +280,8 @@ <h2>Add event listeners</h2>
279280
&quot;alert(&#39;The value is: &#39; + obj.value);&quot;,
280281
&quot;}&quot;)) %&gt;&gt;%
281282
plot()</code></pre>
282-
<div id="htmlwidget-c54767c14a4b43dab4b0" style="width:100%;height:480px;" class="ramcharts_base html-widget"></div>
283-
<script type="application/json" data-for="htmlwidget-c54767c14a4b43dab4b0">{"x":{"chartData":{"valueField":"gdp","titleField":"country","startDuration":0,"dataProvider":[{"country":"China","gdp":18.976},{"country":"United States","gdp":18.125},{"country":"India","gdp":7.997},{"country":"Japan","gdp":4.843},{"country":"Germany","gdp":3.815},{"country":"Russia","gdp":3.458},{"country":"Brazil","gdp":3.259},{"country":"Indonesia","gdp":2.84},{"country":"United Kingdom","gdp":2.641},{"country":"France","gdp":2.634}],"legend":{"position":"bottom","useMarkerColorForLabels":true},"type":"pie"},"background":"#ffffff","listeners":{"clickSlice":"function (event) { var obj = event.dataItem; alert('The value is: ' + obj.value); }"},"axes_listeners":null,"axes_listenersIndices":null,"categoryAxis_listeners":null,"chartCursor_listeners":null,"dataSetSelector_listeners":null,"legend_listeners":null,"panels_listeners":null,"panels_listenersIndices":null,"periodSelector_listeners":null,"valueAxes_listeners":null,"valueAxes_listenersIndices":null,"group":null},"evals":["listeners.clickSlice"],"jsHooks":[]}</script>
283+
<div id="htmlwidget-9f34484ddebb187a0df8" style="width:100%;height:480px;" class="ramcharts_base html-widget"></div>
284+
<script type="application/json" data-for="htmlwidget-9f34484ddebb187a0df8">{"x":{"chartData":{"valueField":"gdp","titleField":"country","startDuration":0,"dataProvider":[{"country":"China","gdp":18.976},{"country":"United States","gdp":18.125},{"country":"India","gdp":7.997},{"country":"Japan","gdp":4.843},{"country":"Germany","gdp":3.815},{"country":"Russia","gdp":3.458},{"country":"Brazil","gdp":3.259},{"country":"Indonesia","gdp":2.84},{"country":"United Kingdom","gdp":2.641},{"country":"France","gdp":2.634}],"legend":{"position":"bottom","useMarkerColorForLabels":true},"type":"pie"},"background":"#ffffff","listeners":{"clickSlice":"function (event) { var obj = event.dataItem; alert('The value is: ' + obj.value); }"},"axes_listeners":null,"axes_listenersIndices":null,"categoryAxis_listeners":null,"chartCursor_listeners":null,"dataSetSelector_listeners":null,"legend_listeners":null,"panels_listeners":null,"panels_listenersIndices":null,"periodSelector_listeners":null,"valueAxes_listeners":null,"valueAxes_listenersIndices":null,"group":null},"evals":["listeners.clickSlice"],"jsHooks":[]}</script>
284285
</div>
285286

286287

0 commit comments

Comments
 (0)