1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "data": {
9 "type": "bar",
10 "title": "Monthly revenue",
11 "subtitle": "Example data, USD",
12 "labels": [
13 "Jan",
14 "Feb",
15 "Mar",
16 "Apr",
17 "May",
18 "Jun",
19 ],
20 "values": [
21 4200,
22 5100,
23 4800,
24 6400,
25 7100,
26 8300,
27 ],
28 "format": "currency",
29 "highlight": "Jun",
30 } }
31
32
33run = client.actor("rowhouse/platemark").call(run_input=run_input)
34
35
36print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
37for item in client.dataset(run.default_dataset_id).iterate_items():
38 print(item)
39
40