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); | |
Table table = Table.instantiate("x"); | |
table.addData(getData()); | |
TableMapping mapping = table.mapAs("{open: 'open', high: 'high', low: 'low', close: 'close'}"); | |
Stock stock = AnyChart.stock(); | |
Plot plot = stock.plot(0); |
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 UIKit | |
import AnyChartiOS | |
class ViewController: UIViewController { | |
@IBOutlet var anyChartView: AnyChartView! | |
override func viewDidLoad() { | |
super.viewDidLoad() |
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 chart = findViewById(R.id.any_chart_view); | |
APIlib.getInstance().setActiveAnyChartView(chart); | |
Cartesian cartesian = AnyChart.line(); | |
cartesian.animation(true); | |
cartesian.padding(10.0, 20.0, 5.0, 20.0); | |
cartesian.animation(true); | |
cartesian.crosshair().enabled(true); | |
cartesian.crosshair() | |
.yLabel(true) | |
.yStroke((Stroke) null, null, null, (String) null, (String) null); |
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 chart = findViewById(R.id.any_chart_view); | |
APIlib.getInstance().setActiveAnyChartView(chart); | |
Cartesian lineChart = AnyChart.line(); | |
List<DataEntry> list = new ArrayList<>(); | |
list.add(new ValueDataEntry("1615354086157", 1)); | |
list.add(new ValueDataEntry("1615354096157", 3)); | |
list.add(new ValueDataEntry("1615354106157", 63)); | |
list.add(new ValueDataEntry("1615354116157", 1326)); | |
list.add(new ValueDataEntry("1615354126157", 2059)); | |
list.add(new ValueDataEntry("1615354136157", 7598)); |
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
final Pie pie = AnyChart.pie(); | |
List<DataEntry> data = new ArrayList<>(); | |
data.add(new ValueDataEntry("Apples", 6371664)); | |
data.add(new ValueDataEntry("Pears", 789622)); | |
data.add(new ValueDataEntry("Bananas", 7216301)); | |
data.add(new ValueDataEntry("Grapes", 1486621)); | |
data.add(new ValueDataEntry("Oranges", 1200000)); | |
pie.title().enabled(true).text("Title text"); |
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); | |
Cartesian chart = AnyChart.line(); | |
List<DataEntry> data = new ArrayList<>(); | |
data.add(new ValueDataEntry("John", 10)); | |
data.add(new ValueDataEntry("Jake", 12)); | |
data.add(new ValueDataEntry("Peter", 18)); | |
data.add(new ValueDataEntry("Mike", 14)); | |
Column series = chart.column(data); |
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); | |
Polar polar = AnyChart.polar(); | |
List<DataEntry> data1 = new ArrayList<>(); | |
data1.add(new CustomDataEntry("Nail polish", 12814, "blue")); | |
data1.add(new CustomDataEntry("Eyebrow pencil", 13012, "purple")); | |
data1.add(new CustomDataEntry("Rouge", 11624, "green")); | |
data1.add(new CustomDataEntry("Pomade", 8814, "blue")); | |
data1.add(new CustomDataEntry("Eyeshadows", 12998, "blue")); |
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
[Table]: | |
LOAD | |
[name], | |
[value], | |
Date(Date#([start], 'D/M/YYYY') ) AS [start], | |
Date(Date#([finish], 'DD/M/YYYY') ) AS [finish]; | |
LOAD * INLINE | |
[ | |
name,value,start,finish | |
task_1,15,1/1/2020,10/3/2020 |
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); | |
List<DataEntry> data = new ArrayList<>(); | |
data.add(new CustomDataEntry("2020/05/23", "TripTone360")); | |
data.add(new CustomDataEntry("2025/05/23", "Trip")); | |
Cartesian chart = AnyChart.cartesian(); | |
chart.xAxis(0).enabled(true); | |
chart.yAxis(0).enabled(true); | |
JumpLine series = chart.jumpLine(data); |
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 CustomDataEntry("Rare", "Insignificant", 10.0)); | |
data.add(new CustomDataEntry("Rare", "Minor", 8.12)); | |
data.add(new CustomDataEntry("Rare", "Moderate", 7.34)); | |
data.add(new CustomDataEntry("Unlikely", "Insignificant", 2.2134)); |
NewerOlder