Download web/AnyChart/bar/chart_0052_bar.html from chartact-benchmark/ChartAct: direct link, hf CLI and curl.
- Browser
- Download file 2.74 kB
-
https://huggingface.co/datasets/chartact-benchmark/ChartAct/resolve/main/web/AnyChart/bar/chart_0052_bar.html
- Command line
-
hf download hf://datasets/chartact-benchmark/ChartAct/web/AnyChart/bar/chart_0052_bar.html
-
curl -L -o chart_0052_bar.html https://huggingface.co/datasets/chartact-benchmark/ChartAct/resolve/main/web/AnyChart/bar/chart_0052_bar.html
2.74 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>AGST Scales 07</title> | |
| <link href="https://playground.anychart.com/docs/samples/AGST_Scales_07/iframe" rel="canonical"> | |
| <meta content="Bar Chart,Column Chart,Dashboard,Graphics,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 defaults | |
| anychart.theme({chart:{xAxis:{title: false},yAxis:{title: false}}}); | |
| // set stage | |
| var stage = anychart.graphics.create("container"); | |
| // create table | |
| var table = anychart.standalones.table(); | |
| var firstRow = table.getRow(0); | |
| firstRow.height("10%"); | |
| // setting data | |
| var data_1 = [ | |
| ["C", 5], | |
| ["D", 21], | |
| ["E", 34] | |
| ]; | |
| var data_2 = [ | |
| ["C", 5], | |
| ["D", 1], | |
| ["E", 4] | |
| ]; | |
| // create charts | |
| var chart_1 = anychart.column(data_1); | |
| var chart_2 = anychart.column(data_1); | |
| var chart_3 = anychart.column(data_1); | |
| var chart_4 = anychart.column(data_2); | |
| var chart_5 = anychart.column(data_2); | |
| var chart_6 = anychart.column(data_2); | |
| chart_2.yScale().maximum(10); | |
| chart_3.yScale().softMaximum(10); | |
| chart_5.yScale().maximum(10); | |
| chart_6.yScale().softMaximum(10); | |
| // set table content | |
| table.contents([ | |
| ["Auto Calculation", ".maximum(10)","softMaximum(10)"], | |
| [ | |
| chart_1, | |
| chart_2, | |
| chart_3 | |
| ], | |
| [ | |
| chart_4, | |
| chart_5, | |
| chart_6 | |
| ] | |
| ]); | |
| // position text in the center of each cell | |
| table.vAlign("middle"); | |
| table.hAlign("center"); | |
| // set table container and initiate draw | |
| table.container(stage); | |
| table.draw(); | |
| });</script> | |
| </body> | |
| </html> |