Download web/AnyChart/bar/chart_0045_bar.html from chartact-benchmark/ChartAct: direct link, hf CLI and curl.
- Browser
- Download file 2.22 kB
-
https://huggingface.co/datasets/chartact-benchmark/ChartAct/resolve/main/web/AnyChart/bar/chart_0045_bar.html
- Command line
-
hf download hf://datasets/chartact-benchmark/ChartAct/web/AnyChart/bar/chart_0045_bar.html
-
curl -L -o chart_0045_bar.html https://huggingface.co/datasets/chartact-benchmark/ChartAct/resolve/main/web/AnyChart/bar/chart_0045_bar.html
2.22 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta content="IE=edge" http-equiv="X-UA-Compatible"> | |
| <meta content="width=device-width, initial-scale=1" name="viewport"> | |
| <title>CRUD 03</title> | |
| <link href="https://playground.anychart.com/docs/samples/CRUD_03/iframe" rel="canonical"> | |
| <meta content="Bar Chart,Column Chart" name="keywords"> | |
| <meta content="AnyChart - JavaScript Charts designed to be embedded and integrated" name="description"> | |
| <!--[if lt IE 9]> | |
| <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> | |
| <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> | |
| <![endif]--> | |
| <link href="_deps/cdn.anychart.com/releases/8.14.1/css/anychart-ui.min_qe95e7e741b.css" rel="stylesheet" type="text/css"> | |
| <style>html, body, #container { | |
| width: 100%; | |
| height: 100%; | |
| margin: 0; | |
| padding: 0; | |
| }</style> | |
| </head> | |
| <body> | |
| <div id="container"></div> | |
| <script src="_deps/cdn.anychart.com/releases/8.14.1/js/anychart-base.min_qe95e7e741b.js"></script> | |
| <script src="_deps/cdn.anychart.com/releases/8.14.1/js/anychart-exports.min_qe95e7e741b.js"></script> | |
| <script src="_deps/cdn.anychart.com/releases/8.14.1/js/anychart-ui.min_qe95e7e741b.js"></script> | |
| <script type="text/javascript">anychart.onDocumentReady(function () { | |
| // data | |
| var dataSet = anychart.data.set([ | |
| {x: "P1", value: 10}, | |
| {x: "P2", value: 9}, | |
| {x: "P3", value: 15}, | |
| {x: "P4", value: 10}, | |
| {x: "P5", value: 15}, | |
| {x: "P6", value: 13} | |
| ]); | |
| // set chart type | |
| var chart = anychart.column(); | |
| chart.title().text("Click on Column to Add a 5 to it's value "); | |
| // set data | |
| var column = chart.column(dataSet); | |
| // remap data | |
| var view = dataSet.mapAs(); | |
| // set listener on chart | |
| column.listen( | |
| // listener type | |
| "pointclick", | |
| // function, if listener triggers | |
| function(e) { | |
| view.set( | |
| e.pointIndex, // get index of clicked column | |
| "value", // get parameter to update | |
| view.get(e.pointIndex, "value") + 5 // parameter updating | |
| ); | |
| } | |
| ); | |
| // set container and draw chart | |
| chart.container("container").draw(); | |
| });</script> | |
| </body> | |
| </html> |