Download web/AnyChart/line/chart_0052_line.html from chartact-benchmark/ChartAct: direct link, hf CLI and curl.
- Browser
- Download file 3 kB
-
https://huggingface.co/datasets/chartact-benchmark/ChartAct/resolve/main/web/AnyChart/line/chart_0052_line.html
- Command line
-
hf download hf://datasets/chartact-benchmark/ChartAct/web/AnyChart/line/chart_0052_line.html
-
curl -L -o chart_0052_line.html https://huggingface.co/datasets/chartact-benchmark/ChartAct/resolve/main/web/AnyChart/line/chart_0052_line.html
3 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>Standalones 05</title> | |
| <link href="https://playground.anychart.com/docs/samples/Standalones_05/iframe" rel="canonical"> | |
| <meta content="Dashboard,Graphics,Line Chart,Table Layout" 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-table.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 () { | |
| // set the stage | |
| stage = anychart.graphics.create("container", "100%", "100%"); | |
| // create a chart | |
| var chart = anychart.line(); | |
| data = [ | |
| ["Winter", 1.1, 1, 2, 1.8, 0.1, 0.5, 1.4], | |
| ["Spring", 1.6, 2, 1.5, 1.9, 0.2, 1.1, 1.4], | |
| ["Summer", 1.4, 1.9, 0.5, 0.9, 0.3, 1.8, 1.2], | |
| ["Fall", 1.9, 1.3, 1.1, 0.3, 0.4, 1.7, 0.9] | |
| ]; | |
| chart.data(data); | |
| // add a title standalone object on the chart | |
| title = anychart.standalones.title(); | |
| title.text("This is the title"); | |
| // chart padding | |
| chart.padding().top(50); | |
| // create a table and fill it in | |
| table = anychart.standalones.table(); | |
| table.rowsCount(8); | |
| table.colsCount(5); | |
| table.zIndex(100000000); | |
| table.bounds("65%", "35%", "30%", "60%"); | |
| table.fontSize(9); | |
| table.contents([ | |
| ["", "Winter", "Spring", "Summer", "Fall"], | |
| ["Store 1", 1.1, 1.6, 1.4, 1.9], | |
| ["Store 2", 1, 2, 1.9, 1.3], | |
| ["Store 3", 2, 1.5, 0.5, 1.1], | |
| ["Store 4", 1.8, 1.9, 0.9, 0.3], | |
| ["Store 5", 0.1, 0.2, 0.3, 0.4], | |
| ["Store 6", 0.5, 1.1, 1.8, 1.7], | |
| ["Store 7", 1.4, 1.4, 1.2, 0.9] | |
| ]); | |
| // text align settings | |
| table.hAlign("center"); | |
| table.vAlign("middle"); | |
| // set chart width | |
| chart.width("65%"); | |
| // create a text block | |
| label = anychart.standalones.label(); | |
| label.text("This is the label"); | |
| // put the table on a stage and draw it | |
| label.container(stage); | |
| label.draw(); | |
| // put the table on a stage and draw it | |
| table.container(stage); | |
| table.draw(); | |
| // put the chart on a stage and draw it | |
| chart.container(stage); | |
| chart.draw(); | |
| // put the title object on a stage | |
| title.container(stage); | |
| title.draw(); | |
| });</script> | |
| </body> | |
| </html> |