This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
AnyChartView anyChartView = findViewById(R.id.any_chart_view); | |
Scatter scatter = AnyChart.scatter(); | |
scatter.animation(true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AnyChartView anyChartView = findViewById(R.id.any_chart_view); | |
final HeatMap riskMap = AnyChart.heatMap(); | |
riskMap.interactivity().selectionMode(SelectionMode.NONE); | |
List<DataEntry> data = new ArrayList<>(); | |
data.add(new HeatDataEntry("Rare", "Insignificant", 10)); | |
data.add(new HeatDataEntry("Rare", "Minor", 8)); | |
data.add(new HeatDataEntry("Rare", "Moderate", 7)); | |
data.add(new HeatDataEntry("Unlikely", "Insignificant", 2)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {AfterViewInit, Component, OnInit, ViewChild} from '@angular/core'; | |
import {DemoDataProviderService} from '../demo-data-provider.service'; | |
import {Subscription} from 'rxjs'; | |
@Component({ | |
selector: 'app-chart', | |
templateUrl: './chart.component.html', | |
styleUrls: ['./chart.component.css'] | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AnyChartView anyChartView = findViewById(R.id.any_chart_view); | |
Scatter bubble = AnyChart.bubble(); | |
bubble.animation(true); | |
bubble.title().enabled(true); | |
bubble.title().useHtml(true); | |
bubble.title() | |
.padding(0d, 0d, 10d, 0d) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AnyChartView anyChartView = findViewById(R.id.any_chart_view); | |
final TreeMap treeMap = AnyChart.treeMap(); | |
List<DataEntry> data = new ArrayList<>(); | |
data.add(new CustomTreeDataEntry("Parent", null)); | |
data.add(new CustomTreeDataEntry("A", "Parent", 692000, 692000)); | |
data.add(new CustomTreeDataEntry("B", "Parent", 597000, 597000)); | |
data.add(new CustomTreeDataEntry("Dairy", "Parent", 1359000, 1359000)); | |
data.add(new CustomTreeDataEntry("Meat", "Parent", 596000, -596000)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AnyChartView anyChartView = findViewById(R.id.any_chart_view); | |
final TreeMap treeMap = AnyChart.treeMap(); | |
List<DataEntry> data = new ArrayList<>(); | |
data.add(new CustomTreeDataEntry("Parent", null)); | |
data.add(new CustomTreeDataEntry("A", "Parent", 692000, 100, 200)); | |
data.add(new CustomTreeDataEntry("B", "Parent", 597000, 100, 200)); | |
data.add(new CustomTreeDataEntry("Dairy", "Parent", 1359000, 100, 200)); | |
data.add(new CustomTreeDataEntry("Meat", "Parent", 596000, 100, 200)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pie pie = AnyChart.pie(); | |
List<DataEntry> data = new ArrayList<>(); | |
data.add(new ValueDataEntry("John", 10000)); | |
data.add(new ValueDataEntry("Jake", 12000)); | |
data.add(new ValueDataEntry("Peter", 18000)); | |
String[] palette = {"red", "green", "orange", "blue"}; | |
pie.palette(palette); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pie pie = AnyChart.pie(); | |
List<DataEntry> data = new ArrayList<>(); | |
data.add(new CustomDataEntry("John", 10000, "red")); | |
data.add(new CustomDataEntry("Jake", 12000, "green")); | |
data.add(new CustomDataEntry("Peter", 18000, "blue")); | |
pie.data(data); | |
AnyChartView anyChartView = (AnyChartView) findViewById(R.id.any_chart_view); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pie pie = AnyChart.pie(); | |
List<DataEntry> data = new ArrayList<>(); | |
data.add(new CustomDataEntry("John", 1222232.00, "red")); | |
data.add(new CustomDataEntry("Jake", 1222232.00, "green")); | |
data.add(new CustomDataEntry("Peter", 1222232.00, "blue")); | |
pie.data(data); | |
AnyChartView anyChartView = (AnyChartView) findViewById(R.id.any_chart_view); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pie pie = AnyChart.pie(); | |
List<DataEntry> data = new ArrayList<>(); | |
data.add(new CustomDataEntry("A", 637166.0, 3.07)); | |
data.add(new CustomDataEntry("B", 721630.0, -0.77)); | |
data.add(new CustomDataEntry("C", 148662.0, 1.12)); | |
data.add(new CustomDataEntry("D", 78662.0, -1.24)); | |
data.add(new CustomDataEntry("E", 90000.0, 2.14)); | |
pie.data(data); |