File tree Expand file tree Collapse file tree 1 file changed +19
-3
lines changed
Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change 1- ## Filtering
1+ ## Filtering & adding new records
22
33Filtering enables you to zoom in or out within a chart, allowing the viewer to
4- focus on certain selected elements, or add new ones to provide more context.
4+ focus on certain selected elements, or get more context.
5+ You can also add new records to the data on the chart which makes it easy to work
6+ with real-time sources.
57
68We add two items from the Genres dimension - using the || operator - to
79the filter, so the chart elements that belong to the other two items will vanish
@@ -31,10 +33,24 @@ chart.animate({
3133
3234Switching the filter off to get back to the original view.
3335
34- ``` javascript { "title": "Filter off " }
36+ ``` javascript { "title": "Filter off" }
3537chart .animate ({
3638 data: {
3739 filter: null ,
3840 }
3941})
4042```
43+
44+ Here we add another record to the data set and update the chart accordingly.
45+
46+ ``` javascript { "title": "Adding new records" }
47+ chart .animate ({
48+ data: {
49+ records: [
50+ [' Soul' , ' Hard' , 91 ],
51+ [' Soul' , ' Smooth' , 57 ],
52+ [' Soul' , ' Experimental' , 115 ],
53+ ]
54+ }
55+ })
56+ ```
You can’t perform that action at this time.
0 commit comments