Add files using upload-large-folder tool
Browse files- .uploaded_preview_only +1 -0
- LICENSE +201 -0
- README.md +66 -0
- data/dashboard_chart_preview.jsonl +5 -0
- data/dynamic_chart_preview.jsonl +5 -0
- evaluation_examples/chart_preview.json +9 -0
- evaluation_examples/examples/chart_data/chart_0110_bar_q1.json +59 -0
- evaluation_examples/examples/chart_data/chart_0110_bar_q2.json +59 -0
- evaluation_examples/examples/chart_data/chart_0110_bar_q3.json +59 -0
- evaluation_examples/examples/chart_data/chart_0111_bar_q1.json +59 -0
- evaluation_examples/examples/chart_data/chart_0111_bar_q2.json +59 -0
- evaluation_examples/examples/insert_chart_data/chart_0110_bar_q1.json +59 -0
- evaluation_examples/examples/insert_chart_data/chart_0110_bar_q2.json +59 -0
- evaluation_examples/examples/insert_chart_data/chart_0110_bar_q3.json +59 -0
- evaluation_examples/examples/insert_chart_data/chart_0111_bar_q1.json +59 -0
- evaluation_examples/examples/insert_chart_data/chart_0111_bar_q2.json +59 -0
- evaluation_examples/webchart_preview.json +9 -0
- label/AntV G2/bar/chart_0110_bar.json +7 -0
- label/AntV G2/bar/chart_0111_bar.json +7 -0
- preview_summary.json +14 -0
- question_answer/AntV G2/bar/PreQA/chart_0110_bar_q1.json +6 -0
- question_answer/AntV G2/bar/PreQA/chart_0110_bar_q2.json +6 -0
- question_answer/AntV G2/bar/PreQA/chart_0110_bar_q3.json +6 -0
- question_answer/AntV G2/bar/PreQA/chart_0111_bar_q1.json +6 -0
- question_answer/AntV G2/bar/PreQA/chart_0111_bar_q2.json +6 -0
- web/AntV G2/bar/chart_0110_bar.html +90 -0
- web/AntV G2/bar/chart_0111_bar.html +78 -0
- web/AntV G2/bar/g2.min.js +0 -0
- web_insert/AntV G2/bar/chart_0110_bar.html +99 -0
- web_insert/AntV G2/bar/chart_0111_bar.html +125 -0
- web_insert/_chart_sources/AntV G2/bar/chart_0110_bar.html +90 -0
- web_insert/_chart_sources/AntV G2/bar/chart_0111_bar.html +78 -0
- web_insert/_chart_sources/AntV G2/bar/g2.min.js +0 -0
- web_insert/_shared/embedded_template.css +849 -0
- web_insert/_shared/embedded_template.js +199 -0
.uploaded_preview_only
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
This repository contains only the public ChartAct preview release.
|
LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Apache License
|
| 2 |
+
Version 2.0, January 2004
|
| 3 |
+
http://www.apache.org/licenses/
|
| 4 |
+
|
| 5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 6 |
+
|
| 7 |
+
1. Definitions.
|
| 8 |
+
|
| 9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 11 |
+
|
| 12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 13 |
+
the copyright owner that is granting the License.
|
| 14 |
+
|
| 15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 16 |
+
other entities that control, are controlled by, or are under common
|
| 17 |
+
control with that entity. For the purposes of this definition,
|
| 18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 19 |
+
direction or management of such entity, whether by contract or
|
| 20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 22 |
+
|
| 23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 24 |
+
exercising permissions granted by this License.
|
| 25 |
+
|
| 26 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 27 |
+
including but not limited to software source code, documentation
|
| 28 |
+
source, and configuration files.
|
| 29 |
+
|
| 30 |
+
"Object" form shall mean any form resulting from mechanical
|
| 31 |
+
transformation or translation of a Source form, including but
|
| 32 |
+
not limited to compiled object code, generated documentation,
|
| 33 |
+
and conversions to other media types.
|
| 34 |
+
|
| 35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 36 |
+
Object form, made available under the License, as indicated by a
|
| 37 |
+
copyright notice that is included in or attached to the work
|
| 38 |
+
(an example is provided in the Appendix below).
|
| 39 |
+
|
| 40 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 41 |
+
form, that is based on (or derived from) the Work and for which the
|
| 42 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 43 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 44 |
+
of this License, Derivative Works shall not include works that remain
|
| 45 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 46 |
+
the Work and Derivative Works thereof.
|
| 47 |
+
|
| 48 |
+
"Contribution" shall mean any work of authorship, including
|
| 49 |
+
the original version of the Work and any modifications or additions
|
| 50 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 51 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 52 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 53 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 54 |
+
means any form of electronic, verbal, or written communication sent
|
| 55 |
+
to the Licensor or its representatives, including but not limited to
|
| 56 |
+
communication on electronic mailing lists, source code control systems,
|
| 57 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 58 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 59 |
+
excluding communication that is conspicuously marked or otherwise
|
| 60 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 61 |
+
|
| 62 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 63 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 64 |
+
subsequently incorporated within the Work.
|
| 65 |
+
|
| 66 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 67 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 68 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 69 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 70 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 71 |
+
Work and such Derivative Works in Source or Object form.
|
| 72 |
+
|
| 73 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 74 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 75 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 76 |
+
(except as stated in this section) patent license to make, have made,
|
| 77 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 78 |
+
where such license applies only to those patent claims licensable
|
| 79 |
+
by such Contributor that are necessarily infringed by their
|
| 80 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 81 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 82 |
+
institute patent litigation against any entity (including a
|
| 83 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 84 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 85 |
+
or contributory patent infringement, then any patent licenses
|
| 86 |
+
granted to You under this License for that Work shall terminate
|
| 87 |
+
as of the date such litigation is filed.
|
| 88 |
+
|
| 89 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 90 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 91 |
+
modifications, and in Source or Object form, provided that You
|
| 92 |
+
meet the following conditions:
|
| 93 |
+
|
| 94 |
+
(a) You must give any other recipients of the Work or
|
| 95 |
+
Derivative Works a copy of this License; and
|
| 96 |
+
|
| 97 |
+
(b) You must cause any modified files to carry prominent notices
|
| 98 |
+
stating that You changed the files; and
|
| 99 |
+
|
| 100 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 101 |
+
that You distribute, all copyright, patent, trademark, and
|
| 102 |
+
attribution notices from the Source form of the Work,
|
| 103 |
+
excluding those notices that do not pertain to any part of
|
| 104 |
+
the Derivative Works; and
|
| 105 |
+
|
| 106 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 107 |
+
distribution, then any Derivative Works that You distribute must
|
| 108 |
+
include a readable copy of the attribution notices contained
|
| 109 |
+
within such NOTICE file, excluding those notices that do not
|
| 110 |
+
pertain to any part of the Derivative Works, in at least one
|
| 111 |
+
of the following places: within a NOTICE text file distributed
|
| 112 |
+
as part of the Derivative Works; within the Source form or
|
| 113 |
+
documentation, if provided along with the Derivative Works; or,
|
| 114 |
+
within a display generated by the Derivative Works, if and
|
| 115 |
+
wherever such third-party notices normally appear. The contents
|
| 116 |
+
of the NOTICE file are for informational purposes only and
|
| 117 |
+
do not modify the License. You may add Your own attribution
|
| 118 |
+
notices within Derivative Works that You distribute, alongside
|
| 119 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 120 |
+
that such additional attribution notices cannot be construed
|
| 121 |
+
as modifying the License.
|
| 122 |
+
|
| 123 |
+
You may add Your own copyright statement to Your modifications and
|
| 124 |
+
may provide additional or different license terms and conditions
|
| 125 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 126 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 127 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 128 |
+
the conditions stated in this License.
|
| 129 |
+
|
| 130 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 131 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 132 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 133 |
+
this License, without any additional terms or conditions.
|
| 134 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 135 |
+
the terms of any separate license agreement you may have executed
|
| 136 |
+
with Licensor regarding such Contributions.
|
| 137 |
+
|
| 138 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 139 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 140 |
+
except as required for reasonable and customary use in describing the
|
| 141 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 142 |
+
|
| 143 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 144 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 145 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 146 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 147 |
+
implied, including, without limitation, any warranties or conditions
|
| 148 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 149 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 150 |
+
appropriateness of using or redistributing the Work and assume any
|
| 151 |
+
risks associated with Your exercise of permissions under this License.
|
| 152 |
+
|
| 153 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 154 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 155 |
+
unless required by applicable law (such as deliberate and grossly
|
| 156 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 157 |
+
liable to You for damages, including any direct, indirect, special,
|
| 158 |
+
incidental, or consequential damages of any character arising as a
|
| 159 |
+
result of this License or out of the use or inability to use the
|
| 160 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 161 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 162 |
+
other commercial damages or losses), even if such Contributor
|
| 163 |
+
has been advised of the possibility of such damages.
|
| 164 |
+
|
| 165 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 166 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 167 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 168 |
+
or other liability obligations and/or rights consistent with this
|
| 169 |
+
License. However, in accepting such obligations, You may act only
|
| 170 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 171 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 172 |
+
defend, and hold each Contributor harmless for any liability
|
| 173 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 174 |
+
of your accepting any such warranty or additional liability.
|
| 175 |
+
|
| 176 |
+
END OF TERMS AND CONDITIONS
|
| 177 |
+
|
| 178 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 179 |
+
|
| 180 |
+
To apply the Apache License to your work, attach the following
|
| 181 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 182 |
+
replaced with your own identifying information. (Don't include
|
| 183 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 184 |
+
comment syntax for the file format. We also recommend that a
|
| 185 |
+
file or class name and description of purpose be included on the
|
| 186 |
+
same "printed page" as the copyright notice for easier
|
| 187 |
+
identification within third-party archives.
|
| 188 |
+
|
| 189 |
+
Copyright 2024 XLANG NLP Lab
|
| 190 |
+
|
| 191 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 192 |
+
you may not use this file except in compliance with the License.
|
| 193 |
+
You may obtain a copy of the License at
|
| 194 |
+
|
| 195 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 196 |
+
|
| 197 |
+
Unless required by applicable law or agreed to in writing, software
|
| 198 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 199 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 200 |
+
See the License for the specific language governing permissions and
|
| 201 |
+
limitations under the License.
|
README.md
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
pretty_name: ChartAct Preview
|
| 6 |
+
task_categories:
|
| 7 |
+
- visual-question-answering
|
| 8 |
+
- question-answering
|
| 9 |
+
tags:
|
| 10 |
+
- benchmark
|
| 11 |
+
- gui-agents
|
| 12 |
+
- charts
|
| 13 |
+
- dynamic-chart-understanding
|
| 14 |
+
- interactive
|
| 15 |
+
- preview
|
| 16 |
+
- arxiv:2605.26994
|
| 17 |
+
configs:
|
| 18 |
+
- config_name: default
|
| 19 |
+
data_files:
|
| 20 |
+
- split: dynamic_chart_preview
|
| 21 |
+
path: data/dynamic_chart_preview.jsonl
|
| 22 |
+
- split: dashboard_chart_preview
|
| 23 |
+
path: data/dashboard_chart_preview.jsonl
|
| 24 |
+
---
|
| 25 |
+
|
| 26 |
+
# ChartAct Preview
|
| 27 |
+
|
| 28 |
+
This repository is a preview release of ChartAct, an interactive benchmark for dynamic chart understanding. The full benchmark will be released after formal publication.
|
| 29 |
+
|
| 30 |
+
Paper: [ChartAct: A Benchmark for Dynamic Chart Understanding](https://arxiv.org/abs/2605.26994)
|
| 31 |
+
|
| 32 |
+
GitHub: https://github.com/wulin-wulin/OSWorld_Chart
|
| 33 |
+
|
| 34 |
+
## Contents
|
| 35 |
+
|
| 36 |
+
- `data/dynamic_chart_preview.jsonl`: 5 Dynamic Chart preview samples.
|
| 37 |
+
- `data/dashboard_chart_preview.jsonl`: 5 Dashboard Chart preview samples.
|
| 38 |
+
- `evaluation_examples/`: minimal OSWorld-style task configs for the preview samples.
|
| 39 |
+
- `web/` and `web_insert/`: chart webpages required by the preview samples.
|
| 40 |
+
- `label/` and `question_answer/`: metadata and QA annotations for the preview samples.
|
| 41 |
+
|
| 42 |
+
This preview is intended to show the benchmark format and runnable framework without releasing the full evaluation set before publication.
|
| 43 |
+
|
| 44 |
+
## Loading
|
| 45 |
+
|
| 46 |
+
```python
|
| 47 |
+
from datasets import load_dataset
|
| 48 |
+
|
| 49 |
+
dataset = load_dataset("chartact-benchmark/ChartAct")
|
| 50 |
+
dynamic = dataset["dynamic_chart_preview"]
|
| 51 |
+
dashboard = dataset["dashboard_chart_preview"]
|
| 52 |
+
print(dynamic[0])
|
| 53 |
+
```
|
| 54 |
+
|
| 55 |
+
## Citation
|
| 56 |
+
|
| 57 |
+
```bibtex
|
| 58 |
+
@misc{chartact2026,
|
| 59 |
+
title={ChartAct: A Benchmark for Dynamic Chart Understanding},
|
| 60 |
+
author={Muye Huang and Lin Wu and Lingling Zhang and Hang Yan and Zhiyuan Wang and Yumeng Fu and Zesheng Yang and Jun Liu},
|
| 61 |
+
year={2026},
|
| 62 |
+
eprint={2605.26994},
|
| 63 |
+
archivePrefix={arXiv},
|
| 64 |
+
primaryClass={cs.CV}
|
| 65 |
+
}
|
| 66 |
+
```
|
data/dashboard_chart_preview.jsonl
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"answer": "The letter E has the highest frequency, at 0.12702.", "chart_id": "chart_0110_bar", "chart_path": "web_insert/AntV G2/bar/chart_0110_bar.html", "chart_source": "AntV G2", "chart_type": "bar", "chart_url_path": "/web_insert/AntV G2/bar/chart_0110_bar.html", "environment": "dashboard_chart", "expected_answer": "The letter E has the highest frequency, at 0.12702.", "hf_chart_url": "https://huggingface.co/datasets/chartact-benchmark/ChartAct/resolve/main/web_insert/AntV%20G2/bar/chart_0110_bar.html", "id": "chart_0110_bar_q1", "label_path": "label/AntV G2/bar/chart_0110_bar.json", "qa_path": "question_answer/AntV G2/bar/PreQA/chart_0110_bar_q1.json", "question": "In this dataset, which letter has the highest frequency? What is the corresponding value?", "question_id": "q1", "task_config_path": "evaluation_examples/examples/insert_chart_data/chart_0110_bar_q1.json"}
|
| 2 |
+
{"answer": "The letters E and T, at 0.12702 and 0.09056 respectively.", "chart_id": "chart_0110_bar", "chart_path": "web_insert/AntV G2/bar/chart_0110_bar.html", "chart_source": "AntV G2", "chart_type": "bar", "chart_url_path": "/web_insert/AntV G2/bar/chart_0110_bar.html", "environment": "dashboard_chart", "expected_answer": "The letters E and T, at 0.12702 and 0.09056 respectively.", "hf_chart_url": "https://huggingface.co/datasets/chartact-benchmark/ChartAct/resolve/main/web_insert/AntV%20G2/bar/chart_0110_bar.html", "id": "chart_0110_bar_q2", "label_path": "label/AntV G2/bar/chart_0110_bar.json", "qa_path": "question_answer/AntV G2/bar/PreQA/chart_0110_bar_q2.json", "question": "Which letters have frequency greater than 0.09? What are their specific values?", "question_id": "q2", "task_config_path": "evaluation_examples/examples/insert_chart_data/chart_0110_bar_q2.json"}
|
| 3 |
+
{"answer": "The letter T is higher; A is 0.08167, and T is 0.09056.", "chart_id": "chart_0110_bar", "chart_path": "web_insert/AntV G2/bar/chart_0110_bar.html", "chart_source": "AntV G2", "chart_type": "bar", "chart_url_path": "/web_insert/AntV G2/bar/chart_0110_bar.html", "environment": "dashboard_chart", "expected_answer": "The letter T is higher; A is 0.08167, and T is 0.09056.", "hf_chart_url": "https://huggingface.co/datasets/chartact-benchmark/ChartAct/resolve/main/web_insert/AntV%20G2/bar/chart_0110_bar.html", "id": "chart_0110_bar_q3", "label_path": "label/AntV G2/bar/chart_0110_bar.json", "qa_path": "question_answer/AntV G2/bar/PreQA/chart_0110_bar_q3.json", "question": "Between the letters A and T, which one has a higher frequency? What are their respective values?", "question_id": "q3", "task_config_path": "evaluation_examples/examples/insert_chart_data/chart_0110_bar_q3.json"}
|
| 4 |
+
{"answer": "1957 has the highest sales, at 145.", "chart_id": "chart_0111_bar", "chart_path": "web_insert/AntV G2/bar/chart_0111_bar.html", "chart_source": "AntV G2", "chart_type": "bar", "chart_url_path": "/web_insert/AntV G2/bar/chart_0111_bar.html", "environment": "dashboard_chart", "expected_answer": "1957 has the highest sales, at 145.", "hf_chart_url": "https://huggingface.co/datasets/chartact-benchmark/ChartAct/resolve/main/web_insert/AntV%20G2/bar/chart_0111_bar.html", "id": "chart_0111_bar_q1", "label_path": "label/AntV G2/bar/chart_0111_bar.json", "qa_path": "question_answer/AntV G2/bar/PreQA/chart_0111_bar_q1.json", "question": "In this simple bar chart, which year has the highest sales? What is the sales value?", "question_id": "q1", "task_config_path": "evaluation_examples/examples/insert_chart_data/chart_0111_bar_q1.json"}
|
| 5 |
+
{"answer": "There are 4 years with sales of 38: 1951, 1959, 1960, and 1962.", "chart_id": "chart_0111_bar", "chart_path": "web_insert/AntV G2/bar/chart_0111_bar.html", "chart_source": "AntV G2", "chart_type": "bar", "chart_url_path": "/web_insert/AntV G2/bar/chart_0111_bar.html", "environment": "dashboard_chart", "expected_answer": "There are 4 years with sales of 38: 1951, 1959, 1960, and 1962.", "hf_chart_url": "https://huggingface.co/datasets/chartact-benchmark/ChartAct/resolve/main/web_insert/AntV%20G2/bar/chart_0111_bar.html", "id": "chart_0111_bar_q2", "label_path": "label/AntV G2/bar/chart_0111_bar.json", "qa_path": "question_answer/AntV G2/bar/PreQA/chart_0111_bar_q2.json", "question": "How many years have sales of 38? Which years are they?", "question_id": "q2", "task_config_path": "evaluation_examples/examples/insert_chart_data/chart_0111_bar_q2.json"}
|
data/dynamic_chart_preview.jsonl
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"answer": "The letter E has the highest frequency, at 0.12702.", "chart_id": "chart_0110_bar", "chart_path": "web/AntV G2/bar/chart_0110_bar.html", "chart_source": "AntV G2", "chart_type": "bar", "chart_url_path": "/web/AntV G2/bar/chart_0110_bar.html", "environment": "dynamic_chart", "expected_answer": "The letter E has the highest frequency, at 0.12702.", "hf_chart_url": "https://huggingface.co/datasets/chartact-benchmark/ChartAct/resolve/main/web/AntV%20G2/bar/chart_0110_bar.html", "id": "chart_0110_bar_q1", "label_path": "label/AntV G2/bar/chart_0110_bar.json", "qa_path": "question_answer/AntV G2/bar/PreQA/chart_0110_bar_q1.json", "question": "In this dataset, which letter has the highest frequency? What is the corresponding value?", "question_id": "q1", "task_config_path": "evaluation_examples/examples/chart_data/chart_0110_bar_q1.json"}
|
| 2 |
+
{"answer": "The letters E and T, at 0.12702 and 0.09056 respectively.", "chart_id": "chart_0110_bar", "chart_path": "web/AntV G2/bar/chart_0110_bar.html", "chart_source": "AntV G2", "chart_type": "bar", "chart_url_path": "/web/AntV G2/bar/chart_0110_bar.html", "environment": "dynamic_chart", "expected_answer": "The letters E and T, at 0.12702 and 0.09056 respectively.", "hf_chart_url": "https://huggingface.co/datasets/chartact-benchmark/ChartAct/resolve/main/web/AntV%20G2/bar/chart_0110_bar.html", "id": "chart_0110_bar_q2", "label_path": "label/AntV G2/bar/chart_0110_bar.json", "qa_path": "question_answer/AntV G2/bar/PreQA/chart_0110_bar_q2.json", "question": "Which letters have frequency greater than 0.09? What are their specific values?", "question_id": "q2", "task_config_path": "evaluation_examples/examples/chart_data/chart_0110_bar_q2.json"}
|
| 3 |
+
{"answer": "The letter T is higher; A is 0.08167, and T is 0.09056.", "chart_id": "chart_0110_bar", "chart_path": "web/AntV G2/bar/chart_0110_bar.html", "chart_source": "AntV G2", "chart_type": "bar", "chart_url_path": "/web/AntV G2/bar/chart_0110_bar.html", "environment": "dynamic_chart", "expected_answer": "The letter T is higher; A is 0.08167, and T is 0.09056.", "hf_chart_url": "https://huggingface.co/datasets/chartact-benchmark/ChartAct/resolve/main/web/AntV%20G2/bar/chart_0110_bar.html", "id": "chart_0110_bar_q3", "label_path": "label/AntV G2/bar/chart_0110_bar.json", "qa_path": "question_answer/AntV G2/bar/PreQA/chart_0110_bar_q3.json", "question": "Between the letters A and T, which one has a higher frequency? What are their respective values?", "question_id": "q3", "task_config_path": "evaluation_examples/examples/chart_data/chart_0110_bar_q3.json"}
|
| 4 |
+
{"answer": "1957 has the highest sales, at 145.", "chart_id": "chart_0111_bar", "chart_path": "web/AntV G2/bar/chart_0111_bar.html", "chart_source": "AntV G2", "chart_type": "bar", "chart_url_path": "/web/AntV G2/bar/chart_0111_bar.html", "environment": "dynamic_chart", "expected_answer": "1957 has the highest sales, at 145.", "hf_chart_url": "https://huggingface.co/datasets/chartact-benchmark/ChartAct/resolve/main/web/AntV%20G2/bar/chart_0111_bar.html", "id": "chart_0111_bar_q1", "label_path": "label/AntV G2/bar/chart_0111_bar.json", "qa_path": "question_answer/AntV G2/bar/PreQA/chart_0111_bar_q1.json", "question": "In this simple bar chart, which year has the highest sales? What is the sales value?", "question_id": "q1", "task_config_path": "evaluation_examples/examples/chart_data/chart_0111_bar_q1.json"}
|
| 5 |
+
{"answer": "There are 4 years with sales of 38: 1951, 1959, 1960, and 1962.", "chart_id": "chart_0111_bar", "chart_path": "web/AntV G2/bar/chart_0111_bar.html", "chart_source": "AntV G2", "chart_type": "bar", "chart_url_path": "/web/AntV G2/bar/chart_0111_bar.html", "environment": "dynamic_chart", "expected_answer": "There are 4 years with sales of 38: 1951, 1959, 1960, and 1962.", "hf_chart_url": "https://huggingface.co/datasets/chartact-benchmark/ChartAct/resolve/main/web/AntV%20G2/bar/chart_0111_bar.html", "id": "chart_0111_bar_q2", "label_path": "label/AntV G2/bar/chart_0111_bar.json", "qa_path": "question_answer/AntV G2/bar/PreQA/chart_0111_bar_q2.json", "question": "How many years have sales of 38? Which years are they?", "question_id": "q2", "task_config_path": "evaluation_examples/examples/chart_data/chart_0111_bar_q2.json"}
|
evaluation_examples/chart_preview.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"chart_data": [
|
| 3 |
+
"chart_0110_bar_q1",
|
| 4 |
+
"chart_0110_bar_q2",
|
| 5 |
+
"chart_0110_bar_q3",
|
| 6 |
+
"chart_0111_bar_q1",
|
| 7 |
+
"chart_0111_bar_q2"
|
| 8 |
+
]
|
| 9 |
+
}
|
evaluation_examples/examples/chart_data/chart_0110_bar_q1.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"id": "chart_0110_bar_q1",
|
| 3 |
+
"instruction": "In this dataset, which letter has the highest frequency? What is the corresponding value?",
|
| 4 |
+
"config": [
|
| 5 |
+
{
|
| 6 |
+
"type": "launch",
|
| 7 |
+
"parameters": {
|
| 8 |
+
"command": [
|
| 9 |
+
"google-chrome",
|
| 10 |
+
"--remote-debugging-port=1337"
|
| 11 |
+
]
|
| 12 |
+
}
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "launch",
|
| 16 |
+
"parameters": {
|
| 17 |
+
"command": [
|
| 18 |
+
"socat",
|
| 19 |
+
"tcp-listen:9222,fork",
|
| 20 |
+
"tcp:localhost:1337"
|
| 21 |
+
]
|
| 22 |
+
}
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"type": "sleep",
|
| 26 |
+
"parameters": {
|
| 27 |
+
"seconds": 2
|
| 28 |
+
}
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"type": "chrome_open_tabs",
|
| 32 |
+
"parameters": {
|
| 33 |
+
"urls_to_open": [
|
| 34 |
+
"http://202.117.43.20:8772/web/AntV G2/bar/chart_0110_bar.html"
|
| 35 |
+
]
|
| 36 |
+
}
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"type": "activate_window",
|
| 40 |
+
"parameters": {
|
| 41 |
+
"window_name": "Google Chrome"
|
| 42 |
+
}
|
| 43 |
+
}
|
| 44 |
+
],
|
| 45 |
+
"evaluator": {
|
| 46 |
+
"func": "llm_judge",
|
| 47 |
+
"result": {
|
| 48 |
+
"type": "agent_answer"
|
| 49 |
+
},
|
| 50 |
+
"expected": {
|
| 51 |
+
"type": "rule",
|
| 52 |
+
"rules": {
|
| 53 |
+
"question": "In this dataset, which letter has the highest frequency? What is the corresponding value?",
|
| 54 |
+
"expected": "The letter E has the highest frequency, at 0.12702.",
|
| 55 |
+
"rubric": "真实评判"
|
| 56 |
+
}
|
| 57 |
+
}
|
| 58 |
+
}
|
| 59 |
+
}
|
evaluation_examples/examples/chart_data/chart_0110_bar_q2.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"id": "chart_0110_bar_q2",
|
| 3 |
+
"instruction": "Which letters have frequency greater than 0.09? What are their specific values?",
|
| 4 |
+
"config": [
|
| 5 |
+
{
|
| 6 |
+
"type": "launch",
|
| 7 |
+
"parameters": {
|
| 8 |
+
"command": [
|
| 9 |
+
"google-chrome",
|
| 10 |
+
"--remote-debugging-port=1337"
|
| 11 |
+
]
|
| 12 |
+
}
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "launch",
|
| 16 |
+
"parameters": {
|
| 17 |
+
"command": [
|
| 18 |
+
"socat",
|
| 19 |
+
"tcp-listen:9222,fork",
|
| 20 |
+
"tcp:localhost:1337"
|
| 21 |
+
]
|
| 22 |
+
}
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"type": "sleep",
|
| 26 |
+
"parameters": {
|
| 27 |
+
"seconds": 2
|
| 28 |
+
}
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"type": "chrome_open_tabs",
|
| 32 |
+
"parameters": {
|
| 33 |
+
"urls_to_open": [
|
| 34 |
+
"http://202.117.43.20:8772/web/AntV G2/bar/chart_0110_bar.html"
|
| 35 |
+
]
|
| 36 |
+
}
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"type": "activate_window",
|
| 40 |
+
"parameters": {
|
| 41 |
+
"window_name": "Google Chrome"
|
| 42 |
+
}
|
| 43 |
+
}
|
| 44 |
+
],
|
| 45 |
+
"evaluator": {
|
| 46 |
+
"func": "llm_judge",
|
| 47 |
+
"result": {
|
| 48 |
+
"type": "agent_answer"
|
| 49 |
+
},
|
| 50 |
+
"expected": {
|
| 51 |
+
"type": "rule",
|
| 52 |
+
"rules": {
|
| 53 |
+
"question": "Which letters have frequency greater than 0.09? What are their specific values?",
|
| 54 |
+
"expected": "The letters E and T, at 0.12702 and 0.09056 respectively.",
|
| 55 |
+
"rubric": "真实评判"
|
| 56 |
+
}
|
| 57 |
+
}
|
| 58 |
+
}
|
| 59 |
+
}
|
evaluation_examples/examples/chart_data/chart_0110_bar_q3.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"id": "chart_0110_bar_q3",
|
| 3 |
+
"instruction": "Between the letters A and T, which one has a higher frequency? What are their respective values?",
|
| 4 |
+
"config": [
|
| 5 |
+
{
|
| 6 |
+
"type": "launch",
|
| 7 |
+
"parameters": {
|
| 8 |
+
"command": [
|
| 9 |
+
"google-chrome",
|
| 10 |
+
"--remote-debugging-port=1337"
|
| 11 |
+
]
|
| 12 |
+
}
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "launch",
|
| 16 |
+
"parameters": {
|
| 17 |
+
"command": [
|
| 18 |
+
"socat",
|
| 19 |
+
"tcp-listen:9222,fork",
|
| 20 |
+
"tcp:localhost:1337"
|
| 21 |
+
]
|
| 22 |
+
}
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"type": "sleep",
|
| 26 |
+
"parameters": {
|
| 27 |
+
"seconds": 2
|
| 28 |
+
}
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"type": "chrome_open_tabs",
|
| 32 |
+
"parameters": {
|
| 33 |
+
"urls_to_open": [
|
| 34 |
+
"http://202.117.43.20:8772/web/AntV G2/bar/chart_0110_bar.html"
|
| 35 |
+
]
|
| 36 |
+
}
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"type": "activate_window",
|
| 40 |
+
"parameters": {
|
| 41 |
+
"window_name": "Google Chrome"
|
| 42 |
+
}
|
| 43 |
+
}
|
| 44 |
+
],
|
| 45 |
+
"evaluator": {
|
| 46 |
+
"func": "llm_judge",
|
| 47 |
+
"result": {
|
| 48 |
+
"type": "agent_answer"
|
| 49 |
+
},
|
| 50 |
+
"expected": {
|
| 51 |
+
"type": "rule",
|
| 52 |
+
"rules": {
|
| 53 |
+
"question": "Between the letters A and T, which one has a higher frequency? What are their respective values?",
|
| 54 |
+
"expected": "The letter T is higher; A is 0.08167, and T is 0.09056.",
|
| 55 |
+
"rubric": "真实评判"
|
| 56 |
+
}
|
| 57 |
+
}
|
| 58 |
+
}
|
| 59 |
+
}
|
evaluation_examples/examples/chart_data/chart_0111_bar_q1.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"id": "chart_0111_bar_q1",
|
| 3 |
+
"instruction": "In this simple bar chart, which year has the highest sales? What is the sales value?",
|
| 4 |
+
"config": [
|
| 5 |
+
{
|
| 6 |
+
"type": "launch",
|
| 7 |
+
"parameters": {
|
| 8 |
+
"command": [
|
| 9 |
+
"google-chrome",
|
| 10 |
+
"--remote-debugging-port=1337"
|
| 11 |
+
]
|
| 12 |
+
}
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "launch",
|
| 16 |
+
"parameters": {
|
| 17 |
+
"command": [
|
| 18 |
+
"socat",
|
| 19 |
+
"tcp-listen:9222,fork",
|
| 20 |
+
"tcp:localhost:1337"
|
| 21 |
+
]
|
| 22 |
+
}
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"type": "sleep",
|
| 26 |
+
"parameters": {
|
| 27 |
+
"seconds": 2
|
| 28 |
+
}
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"type": "chrome_open_tabs",
|
| 32 |
+
"parameters": {
|
| 33 |
+
"urls_to_open": [
|
| 34 |
+
"http://202.117.43.20:8772/web/AntV G2/bar/chart_0111_bar.html"
|
| 35 |
+
]
|
| 36 |
+
}
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"type": "activate_window",
|
| 40 |
+
"parameters": {
|
| 41 |
+
"window_name": "Google Chrome"
|
| 42 |
+
}
|
| 43 |
+
}
|
| 44 |
+
],
|
| 45 |
+
"evaluator": {
|
| 46 |
+
"func": "llm_judge",
|
| 47 |
+
"result": {
|
| 48 |
+
"type": "agent_answer"
|
| 49 |
+
},
|
| 50 |
+
"expected": {
|
| 51 |
+
"type": "rule",
|
| 52 |
+
"rules": {
|
| 53 |
+
"question": "In this simple bar chart, which year has the highest sales? What is the sales value?",
|
| 54 |
+
"expected": "1957 has the highest sales, at 145.",
|
| 55 |
+
"rubric": "真实评判"
|
| 56 |
+
}
|
| 57 |
+
}
|
| 58 |
+
}
|
| 59 |
+
}
|
evaluation_examples/examples/chart_data/chart_0111_bar_q2.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"id": "chart_0111_bar_q2",
|
| 3 |
+
"instruction": "How many years have sales of 38? Which years are they?",
|
| 4 |
+
"config": [
|
| 5 |
+
{
|
| 6 |
+
"type": "launch",
|
| 7 |
+
"parameters": {
|
| 8 |
+
"command": [
|
| 9 |
+
"google-chrome",
|
| 10 |
+
"--remote-debugging-port=1337"
|
| 11 |
+
]
|
| 12 |
+
}
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "launch",
|
| 16 |
+
"parameters": {
|
| 17 |
+
"command": [
|
| 18 |
+
"socat",
|
| 19 |
+
"tcp-listen:9222,fork",
|
| 20 |
+
"tcp:localhost:1337"
|
| 21 |
+
]
|
| 22 |
+
}
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"type": "sleep",
|
| 26 |
+
"parameters": {
|
| 27 |
+
"seconds": 2
|
| 28 |
+
}
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"type": "chrome_open_tabs",
|
| 32 |
+
"parameters": {
|
| 33 |
+
"urls_to_open": [
|
| 34 |
+
"http://202.117.43.20:8772/web/AntV G2/bar/chart_0111_bar.html"
|
| 35 |
+
]
|
| 36 |
+
}
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"type": "activate_window",
|
| 40 |
+
"parameters": {
|
| 41 |
+
"window_name": "Google Chrome"
|
| 42 |
+
}
|
| 43 |
+
}
|
| 44 |
+
],
|
| 45 |
+
"evaluator": {
|
| 46 |
+
"func": "llm_judge",
|
| 47 |
+
"result": {
|
| 48 |
+
"type": "agent_answer"
|
| 49 |
+
},
|
| 50 |
+
"expected": {
|
| 51 |
+
"type": "rule",
|
| 52 |
+
"rules": {
|
| 53 |
+
"question": "How many years have sales of 38? Which years are they?",
|
| 54 |
+
"expected": "There are 4 years with sales of 38: 1951, 1959, 1960, and 1962.",
|
| 55 |
+
"rubric": "真实评判"
|
| 56 |
+
}
|
| 57 |
+
}
|
| 58 |
+
}
|
| 59 |
+
}
|
evaluation_examples/examples/insert_chart_data/chart_0110_bar_q1.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"id": "chart_0110_bar_q1",
|
| 3 |
+
"instruction": "In this dataset, which letter has the highest frequency? What is the corresponding value?",
|
| 4 |
+
"config": [
|
| 5 |
+
{
|
| 6 |
+
"type": "launch",
|
| 7 |
+
"parameters": {
|
| 8 |
+
"command": [
|
| 9 |
+
"google-chrome",
|
| 10 |
+
"--remote-debugging-port=1337"
|
| 11 |
+
]
|
| 12 |
+
}
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "launch",
|
| 16 |
+
"parameters": {
|
| 17 |
+
"command": [
|
| 18 |
+
"socat",
|
| 19 |
+
"tcp-listen:9222,fork",
|
| 20 |
+
"tcp:localhost:1337"
|
| 21 |
+
]
|
| 22 |
+
}
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"type": "sleep",
|
| 26 |
+
"parameters": {
|
| 27 |
+
"seconds": 2
|
| 28 |
+
}
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"type": "chrome_open_tabs",
|
| 32 |
+
"parameters": {
|
| 33 |
+
"urls_to_open": [
|
| 34 |
+
"http://202.117.43.20:8772/web_insert/AntV G2/bar/chart_0110_bar.html"
|
| 35 |
+
]
|
| 36 |
+
}
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"type": "activate_window",
|
| 40 |
+
"parameters": {
|
| 41 |
+
"window_name": "Google Chrome"
|
| 42 |
+
}
|
| 43 |
+
}
|
| 44 |
+
],
|
| 45 |
+
"evaluator": {
|
| 46 |
+
"func": "llm_judge",
|
| 47 |
+
"result": {
|
| 48 |
+
"type": "agent_answer"
|
| 49 |
+
},
|
| 50 |
+
"expected": {
|
| 51 |
+
"type": "rule",
|
| 52 |
+
"rules": {
|
| 53 |
+
"question": "In this dataset, which letter has the highest frequency? What is the corresponding value?",
|
| 54 |
+
"expected": "The letter E has the highest frequency, at 0.12702.",
|
| 55 |
+
"rubric": "真实评判"
|
| 56 |
+
}
|
| 57 |
+
}
|
| 58 |
+
}
|
| 59 |
+
}
|
evaluation_examples/examples/insert_chart_data/chart_0110_bar_q2.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"id": "chart_0110_bar_q2",
|
| 3 |
+
"instruction": "Which letters have frequency greater than 0.09? What are their specific values?",
|
| 4 |
+
"config": [
|
| 5 |
+
{
|
| 6 |
+
"type": "launch",
|
| 7 |
+
"parameters": {
|
| 8 |
+
"command": [
|
| 9 |
+
"google-chrome",
|
| 10 |
+
"--remote-debugging-port=1337"
|
| 11 |
+
]
|
| 12 |
+
}
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "launch",
|
| 16 |
+
"parameters": {
|
| 17 |
+
"command": [
|
| 18 |
+
"socat",
|
| 19 |
+
"tcp-listen:9222,fork",
|
| 20 |
+
"tcp:localhost:1337"
|
| 21 |
+
]
|
| 22 |
+
}
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"type": "sleep",
|
| 26 |
+
"parameters": {
|
| 27 |
+
"seconds": 2
|
| 28 |
+
}
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"type": "chrome_open_tabs",
|
| 32 |
+
"parameters": {
|
| 33 |
+
"urls_to_open": [
|
| 34 |
+
"http://202.117.43.20:8772/web_insert/AntV G2/bar/chart_0110_bar.html"
|
| 35 |
+
]
|
| 36 |
+
}
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"type": "activate_window",
|
| 40 |
+
"parameters": {
|
| 41 |
+
"window_name": "Google Chrome"
|
| 42 |
+
}
|
| 43 |
+
}
|
| 44 |
+
],
|
| 45 |
+
"evaluator": {
|
| 46 |
+
"func": "llm_judge",
|
| 47 |
+
"result": {
|
| 48 |
+
"type": "agent_answer"
|
| 49 |
+
},
|
| 50 |
+
"expected": {
|
| 51 |
+
"type": "rule",
|
| 52 |
+
"rules": {
|
| 53 |
+
"question": "Which letters have frequency greater than 0.09? What are their specific values?",
|
| 54 |
+
"expected": "The letters E and T, at 0.12702 and 0.09056 respectively.",
|
| 55 |
+
"rubric": "真实评判"
|
| 56 |
+
}
|
| 57 |
+
}
|
| 58 |
+
}
|
| 59 |
+
}
|
evaluation_examples/examples/insert_chart_data/chart_0110_bar_q3.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"id": "chart_0110_bar_q3",
|
| 3 |
+
"instruction": "Between the letters A and T, which one has a higher frequency? What are their respective values?",
|
| 4 |
+
"config": [
|
| 5 |
+
{
|
| 6 |
+
"type": "launch",
|
| 7 |
+
"parameters": {
|
| 8 |
+
"command": [
|
| 9 |
+
"google-chrome",
|
| 10 |
+
"--remote-debugging-port=1337"
|
| 11 |
+
]
|
| 12 |
+
}
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "launch",
|
| 16 |
+
"parameters": {
|
| 17 |
+
"command": [
|
| 18 |
+
"socat",
|
| 19 |
+
"tcp-listen:9222,fork",
|
| 20 |
+
"tcp:localhost:1337"
|
| 21 |
+
]
|
| 22 |
+
}
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"type": "sleep",
|
| 26 |
+
"parameters": {
|
| 27 |
+
"seconds": 2
|
| 28 |
+
}
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"type": "chrome_open_tabs",
|
| 32 |
+
"parameters": {
|
| 33 |
+
"urls_to_open": [
|
| 34 |
+
"http://202.117.43.20:8772/web_insert/AntV G2/bar/chart_0110_bar.html"
|
| 35 |
+
]
|
| 36 |
+
}
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"type": "activate_window",
|
| 40 |
+
"parameters": {
|
| 41 |
+
"window_name": "Google Chrome"
|
| 42 |
+
}
|
| 43 |
+
}
|
| 44 |
+
],
|
| 45 |
+
"evaluator": {
|
| 46 |
+
"func": "llm_judge",
|
| 47 |
+
"result": {
|
| 48 |
+
"type": "agent_answer"
|
| 49 |
+
},
|
| 50 |
+
"expected": {
|
| 51 |
+
"type": "rule",
|
| 52 |
+
"rules": {
|
| 53 |
+
"question": "Between the letters A and T, which one has a higher frequency? What are their respective values?",
|
| 54 |
+
"expected": "The letter T is higher; A is 0.08167, and T is 0.09056.",
|
| 55 |
+
"rubric": "真实评判"
|
| 56 |
+
}
|
| 57 |
+
}
|
| 58 |
+
}
|
| 59 |
+
}
|
evaluation_examples/examples/insert_chart_data/chart_0111_bar_q1.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"id": "chart_0111_bar_q1",
|
| 3 |
+
"instruction": "In this simple bar chart, which year has the highest sales? What is the sales value?",
|
| 4 |
+
"config": [
|
| 5 |
+
{
|
| 6 |
+
"type": "launch",
|
| 7 |
+
"parameters": {
|
| 8 |
+
"command": [
|
| 9 |
+
"google-chrome",
|
| 10 |
+
"--remote-debugging-port=1337"
|
| 11 |
+
]
|
| 12 |
+
}
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "launch",
|
| 16 |
+
"parameters": {
|
| 17 |
+
"command": [
|
| 18 |
+
"socat",
|
| 19 |
+
"tcp-listen:9222,fork",
|
| 20 |
+
"tcp:localhost:1337"
|
| 21 |
+
]
|
| 22 |
+
}
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"type": "sleep",
|
| 26 |
+
"parameters": {
|
| 27 |
+
"seconds": 2
|
| 28 |
+
}
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"type": "chrome_open_tabs",
|
| 32 |
+
"parameters": {
|
| 33 |
+
"urls_to_open": [
|
| 34 |
+
"http://202.117.43.20:8772/web_insert/AntV G2/bar/chart_0111_bar.html"
|
| 35 |
+
]
|
| 36 |
+
}
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"type": "activate_window",
|
| 40 |
+
"parameters": {
|
| 41 |
+
"window_name": "Google Chrome"
|
| 42 |
+
}
|
| 43 |
+
}
|
| 44 |
+
],
|
| 45 |
+
"evaluator": {
|
| 46 |
+
"func": "llm_judge",
|
| 47 |
+
"result": {
|
| 48 |
+
"type": "agent_answer"
|
| 49 |
+
},
|
| 50 |
+
"expected": {
|
| 51 |
+
"type": "rule",
|
| 52 |
+
"rules": {
|
| 53 |
+
"question": "In this simple bar chart, which year has the highest sales? What is the sales value?",
|
| 54 |
+
"expected": "1957 has the highest sales, at 145.",
|
| 55 |
+
"rubric": "真实评判"
|
| 56 |
+
}
|
| 57 |
+
}
|
| 58 |
+
}
|
| 59 |
+
}
|
evaluation_examples/examples/insert_chart_data/chart_0111_bar_q2.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"id": "chart_0111_bar_q2",
|
| 3 |
+
"instruction": "How many years have sales of 38? Which years are they?",
|
| 4 |
+
"config": [
|
| 5 |
+
{
|
| 6 |
+
"type": "launch",
|
| 7 |
+
"parameters": {
|
| 8 |
+
"command": [
|
| 9 |
+
"google-chrome",
|
| 10 |
+
"--remote-debugging-port=1337"
|
| 11 |
+
]
|
| 12 |
+
}
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "launch",
|
| 16 |
+
"parameters": {
|
| 17 |
+
"command": [
|
| 18 |
+
"socat",
|
| 19 |
+
"tcp-listen:9222,fork",
|
| 20 |
+
"tcp:localhost:1337"
|
| 21 |
+
]
|
| 22 |
+
}
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"type": "sleep",
|
| 26 |
+
"parameters": {
|
| 27 |
+
"seconds": 2
|
| 28 |
+
}
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"type": "chrome_open_tabs",
|
| 32 |
+
"parameters": {
|
| 33 |
+
"urls_to_open": [
|
| 34 |
+
"http://202.117.43.20:8772/web_insert/AntV G2/bar/chart_0111_bar.html"
|
| 35 |
+
]
|
| 36 |
+
}
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"type": "activate_window",
|
| 40 |
+
"parameters": {
|
| 41 |
+
"window_name": "Google Chrome"
|
| 42 |
+
}
|
| 43 |
+
}
|
| 44 |
+
],
|
| 45 |
+
"evaluator": {
|
| 46 |
+
"func": "llm_judge",
|
| 47 |
+
"result": {
|
| 48 |
+
"type": "agent_answer"
|
| 49 |
+
},
|
| 50 |
+
"expected": {
|
| 51 |
+
"type": "rule",
|
| 52 |
+
"rules": {
|
| 53 |
+
"question": "How many years have sales of 38? Which years are they?",
|
| 54 |
+
"expected": "There are 4 years with sales of 38: 1951, 1959, 1960, and 1962.",
|
| 55 |
+
"rubric": "真实评判"
|
| 56 |
+
}
|
| 57 |
+
}
|
| 58 |
+
}
|
| 59 |
+
}
|
evaluation_examples/webchart_preview.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"insert_chart_data": [
|
| 3 |
+
"chart_0110_bar_q1",
|
| 4 |
+
"chart_0110_bar_q2",
|
| 5 |
+
"chart_0110_bar_q3",
|
| 6 |
+
"chart_0111_bar_q1",
|
| 7 |
+
"chart_0111_bar_q2"
|
| 8 |
+
]
|
| 9 |
+
}
|
label/AntV G2/bar/chart_0110_bar.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"Number": "0110",
|
| 3 |
+
"Type": "bar",
|
| 4 |
+
"Source": "AntV G2",
|
| 5 |
+
"Weblink": "https://g2.antv.antgroup.com/examples/general/interval/#bar-basic",
|
| 6 |
+
"Other": ""
|
| 7 |
+
}
|
label/AntV G2/bar/chart_0111_bar.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"Number": "0111",
|
| 3 |
+
"Type": "bar",
|
| 4 |
+
"Source": "AntV G2",
|
| 5 |
+
"Weblink": "https://g2.antv.antgroup.com/examples/general/interval/#bar-basic-transposed",
|
| 6 |
+
"Other": ""
|
| 7 |
+
}
|
preview_summary.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"repo_id": "chartact-benchmark/ChartAct",
|
| 3 |
+
"sample_count_per_split": 5,
|
| 4 |
+
"task_ids": [
|
| 5 |
+
"chart_0110_bar_q1",
|
| 6 |
+
"chart_0110_bar_q2",
|
| 7 |
+
"chart_0110_bar_q3",
|
| 8 |
+
"chart_0111_bar_q1",
|
| 9 |
+
"chart_0111_bar_q2"
|
| 10 |
+
],
|
| 11 |
+
"dynamic_chart_rows": 5,
|
| 12 |
+
"dashboard_chart_rows": 5,
|
| 13 |
+
"note": "Preview release only. Full benchmark withheld before formal publication."
|
| 14 |
+
}
|
question_answer/AntV G2/bar/PreQA/chart_0110_bar_q1.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"id": "chart_0110_bar_q1",
|
| 3 |
+
"chart": "chart_0110_bar",
|
| 4 |
+
"question": "In this dataset, which letter has the highest frequency? What is the corresponding value?",
|
| 5 |
+
"answer": "The letter E has the highest frequency, at 0.12702."
|
| 6 |
+
}
|
question_answer/AntV G2/bar/PreQA/chart_0110_bar_q2.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"id": "chart_0110_bar_q2",
|
| 3 |
+
"chart": "chart_0110_bar",
|
| 4 |
+
"question": "Which letters have frequency greater than 0.09? What are their specific values?",
|
| 5 |
+
"answer": "The letters E and T, at 0.12702 and 0.09056 respectively."
|
| 6 |
+
}
|
question_answer/AntV G2/bar/PreQA/chart_0110_bar_q3.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"id": "chart_0110_bar_q3",
|
| 3 |
+
"chart": "chart_0110_bar",
|
| 4 |
+
"question": "Between the letters A and T, which one has a higher frequency? What are their respective values?",
|
| 5 |
+
"answer": "The letter T is higher; A is 0.08167, and T is 0.09056."
|
| 6 |
+
}
|
question_answer/AntV G2/bar/PreQA/chart_0111_bar_q1.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"id": "chart_0111_bar_q1",
|
| 3 |
+
"chart": "chart_0111_bar",
|
| 4 |
+
"question": "In this simple bar chart, which year has the highest sales? What is the sales value?",
|
| 5 |
+
"answer": "1957 has the highest sales, at 145."
|
| 6 |
+
}
|
question_answer/AntV G2/bar/PreQA/chart_0111_bar_q2.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"id": "chart_0111_bar_q2",
|
| 3 |
+
"chart": "chart_0111_bar",
|
| 4 |
+
"question": "How many years have sales of 38? Which years are they?",
|
| 5 |
+
"answer": "There are 4 years with sales of 38: 1951, 1959, 1960, and 1962."
|
| 6 |
+
}
|
web/AntV G2/bar/chart_0110_bar.html
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
+
<title>简单柱形图</title>
|
| 7 |
+
<style>
|
| 8 |
+
html, body {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
width: 100%;
|
| 12 |
+
min-height: 100%;
|
| 13 |
+
font-family: Arial, sans-serif;
|
| 14 |
+
background: #ffffff;
|
| 15 |
+
}
|
| 16 |
+
.chart-container {
|
| 17 |
+
width: 100%;
|
| 18 |
+
height: 100vh;
|
| 19 |
+
}
|
| 20 |
+
</style>
|
| 21 |
+
<script src="./g2.min.js"></script>
|
| 22 |
+
</head>
|
| 23 |
+
<body>
|
| 24 |
+
<div id="container" class="chart-container"></div>
|
| 25 |
+
<script>
|
| 26 |
+
(async () => {
|
| 27 |
+
const __seedStart = 3311550756;
|
| 28 |
+
let __seed = __seedStart;
|
| 29 |
+
const __originalMathRandom = Math.random;
|
| 30 |
+
function __seededRandom() {
|
| 31 |
+
__seed = (__seed * 1664525 + 1013904223) >>> 0;
|
| 32 |
+
return __seed / 4294967296;
|
| 33 |
+
}
|
| 34 |
+
Math.random = __seededRandom;
|
| 35 |
+
try {
|
| 36 |
+
const { Chart } = G2;
|
| 37 |
+
|
| 38 |
+
const data = [
|
| 39 |
+
{ letter: 'A', frequency: 0.08167 },
|
| 40 |
+
{ letter: 'B', frequency: 0.01492 },
|
| 41 |
+
{ letter: 'C', frequency: 0.02782 },
|
| 42 |
+
{ letter: 'D', frequency: 0.04253 },
|
| 43 |
+
{ letter: 'E', frequency: 0.12702 },
|
| 44 |
+
{ letter: 'F', frequency: 0.02288 },
|
| 45 |
+
{ letter: 'G', frequency: 0.02015 },
|
| 46 |
+
{ letter: 'H', frequency: 0.06094 },
|
| 47 |
+
{ letter: 'I', frequency: 0.06966 },
|
| 48 |
+
{ letter: 'J', frequency: 0.00153 },
|
| 49 |
+
{ letter: 'K', frequency: 0.00772 },
|
| 50 |
+
{ letter: 'L', frequency: 0.04025 },
|
| 51 |
+
{ letter: 'M', frequency: 0.02406 },
|
| 52 |
+
{ letter: 'N', frequency: 0.06749 },
|
| 53 |
+
{ letter: 'O', frequency: 0.07507 },
|
| 54 |
+
{ letter: 'P', frequency: 0.01929 },
|
| 55 |
+
{ letter: 'Q', frequency: 0.00095 },
|
| 56 |
+
{ letter: 'R', frequency: 0.05987 },
|
| 57 |
+
{ letter: 'S', frequency: 0.06327 },
|
| 58 |
+
{ letter: 'T', frequency: 0.09056 },
|
| 59 |
+
{ letter: 'U', frequency: 0.02758 },
|
| 60 |
+
{ letter: 'V', frequency: 0.00978 },
|
| 61 |
+
{ letter: 'W', frequency: 0.0236 },
|
| 62 |
+
{ letter: 'X', frequency: 0.0015 },
|
| 63 |
+
{ letter: 'Y', frequency: 0.01974 },
|
| 64 |
+
{ letter: 'Z', frequency: 0.00074 },
|
| 65 |
+
];
|
| 66 |
+
const chart = new Chart({
|
| 67 |
+
container: 'container',
|
| 68 |
+
autoFit: true,
|
| 69 |
+
});
|
| 70 |
+
|
| 71 |
+
chart.interval().data(data).encode('x', 'letter').encode('y', 'frequency');
|
| 72 |
+
|
| 73 |
+
chart.render();
|
| 74 |
+
} catch (error) {
|
| 75 |
+
console.error(error);
|
| 76 |
+
const pre = document.createElement('pre');
|
| 77 |
+
pre.style.whiteSpace = 'pre-wrap';
|
| 78 |
+
pre.style.padding = '12px';
|
| 79 |
+
pre.style.margin = '12px';
|
| 80 |
+
pre.style.border = '1px solid #ddd';
|
| 81 |
+
pre.textContent = String(error && error.stack ? error.stack : error);
|
| 82 |
+
document.body.appendChild(pre);
|
| 83 |
+
} finally {
|
| 84 |
+
Math.random = __originalMathRandom;
|
| 85 |
+
}
|
| 86 |
+
})();
|
| 87 |
+
</script>
|
| 88 |
+
<!-- source: https://g2.antv.antgroup.com/examples/general/interval/#bar-basic -->
|
| 89 |
+
</body>
|
| 90 |
+
</html>
|
web/AntV G2/bar/chart_0111_bar.html
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
+
<title>简单条形图</title>
|
| 7 |
+
<style>
|
| 8 |
+
html, body {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
width: 100%;
|
| 12 |
+
min-height: 100%;
|
| 13 |
+
font-family: Arial, sans-serif;
|
| 14 |
+
background: #ffffff;
|
| 15 |
+
}
|
| 16 |
+
.chart-container {
|
| 17 |
+
width: 100%;
|
| 18 |
+
height: 100vh;
|
| 19 |
+
}
|
| 20 |
+
</style>
|
| 21 |
+
<script src="./g2.min.js"></script>
|
| 22 |
+
</head>
|
| 23 |
+
<body>
|
| 24 |
+
<div id="container" class="chart-container"></div>
|
| 25 |
+
<script>
|
| 26 |
+
(async () => {
|
| 27 |
+
const __seedStart = 1571327509;
|
| 28 |
+
let __seed = __seedStart;
|
| 29 |
+
const __originalMathRandom = Math.random;
|
| 30 |
+
function __seededRandom() {
|
| 31 |
+
__seed = (__seed * 1664525 + 1013904223) >>> 0;
|
| 32 |
+
return __seed / 4294967296;
|
| 33 |
+
}
|
| 34 |
+
Math.random = __seededRandom;
|
| 35 |
+
try {
|
| 36 |
+
const { Chart } = G2;
|
| 37 |
+
|
| 38 |
+
const data = [
|
| 39 |
+
{ year: '1951 年', sales: 38 },
|
| 40 |
+
{ year: '1952 年', sales: 52 },
|
| 41 |
+
{ year: '1956 年', sales: 61 },
|
| 42 |
+
{ year: '1957 年', sales: 145 },
|
| 43 |
+
{ year: '1958 年', sales: 48 },
|
| 44 |
+
{ year: '1959 年', sales: 38 },
|
| 45 |
+
{ year: '1960 年', sales: 38 },
|
| 46 |
+
{ year: '1962 年', sales: 38 },
|
| 47 |
+
];
|
| 48 |
+
|
| 49 |
+
const chart = new Chart({
|
| 50 |
+
container: 'container',
|
| 51 |
+
autoFit: true,
|
| 52 |
+
});
|
| 53 |
+
|
| 54 |
+
chart
|
| 55 |
+
.interval()
|
| 56 |
+
.coordinate({ transform: [{ type: 'transpose' }] })
|
| 57 |
+
.data(data)
|
| 58 |
+
.encode('x', 'year')
|
| 59 |
+
.encode('y', 'sales');
|
| 60 |
+
|
| 61 |
+
chart.render();
|
| 62 |
+
} catch (error) {
|
| 63 |
+
console.error(error);
|
| 64 |
+
const pre = document.createElement('pre');
|
| 65 |
+
pre.style.whiteSpace = 'pre-wrap';
|
| 66 |
+
pre.style.padding = '12px';
|
| 67 |
+
pre.style.margin = '12px';
|
| 68 |
+
pre.style.border = '1px solid #ddd';
|
| 69 |
+
pre.textContent = String(error && error.stack ? error.stack : error);
|
| 70 |
+
document.body.appendChild(pre);
|
| 71 |
+
} finally {
|
| 72 |
+
Math.random = __originalMathRandom;
|
| 73 |
+
}
|
| 74 |
+
})();
|
| 75 |
+
</script>
|
| 76 |
+
<!-- source: https://g2.antv.antgroup.com/examples/general/interval/#bar-basic-transposed -->
|
| 77 |
+
</body>
|
| 78 |
+
</html>
|
web/AntV G2/bar/g2.min.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
web_insert/AntV G2/bar/chart_0110_bar.html
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
| 6 |
+
<title>T38 User Operations Console</title>
|
| 7 |
+
<link rel="stylesheet" href="../../_shared/embedded_template.css">
|
| 8 |
+
<style>
|
| 9 |
+
body {
|
| 10 |
+
--page-bg: #f2f5f9;
|
| 11 |
+
--page-bg-strong: #e8edf3;
|
| 12 |
+
--panel-bg: rgba(255, 255, 255, 0.88);
|
| 13 |
+
--panel-solid: #ffffff;
|
| 14 |
+
--panel-border: rgba(15, 23, 42, 0.07);
|
| 15 |
+
--text-main: #162233;
|
| 16 |
+
--text-soft: #65748b;
|
| 17 |
+
--chip-bg: rgba(15, 23, 42, 0.04);
|
| 18 |
+
--accent: #2563eb;
|
| 19 |
+
--accent-soft: rgba(37, 99, 235, 0.14);
|
| 20 |
+
--accent-alt: #38bdf8;
|
| 21 |
+
--hero-glow-a: rgba(59, 130, 246, 0.09);
|
| 22 |
+
--hero-glow-b: rgba(14, 165, 233, 0.08);
|
| 23 |
+
--shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
|
| 24 |
+
}
|
| 25 |
+
</style>
|
| 26 |
+
</head>
|
| 27 |
+
<body class="theme-light template-body" data-template-id="T38" data-layout="L2" data-default-chart-src="../../_chart_sources/AntV G2/bar/chart_0110_bar.html" data-source-chart="web/AntV G2/bar/chart_0110_bar.html" data-output-mode="final" data-final-template="T38">
|
| 28 |
+
<!-- generated from web/AntV G2/bar/chart_0110_bar.html with T38 -->
|
| 29 |
+
<div class="page-shell page-shell-wide">
|
| 30 |
+
<div class="layout-l2">
|
| 31 |
+
<aside class="sidebar-stack">
|
| 32 |
+
<section class="sidebar-card glass sidebar-hero">
|
| 33 |
+
<div class="brand-mark">T38</div>
|
| 34 |
+
<div class="eyebrow">Product Operations</div>
|
| 35 |
+
<h1 class="sidebar-title">User Operations Console</h1>
|
| 36 |
+
<p data-case-name>Retention Intervention Review</p>
|
| 37 |
+
</section>
|
| 38 |
+
<section class="sidebar-card glass"><div class="section-title">Operations Navigation</div><ul class="nav-list"><li class="nav-item active" tabindex="0" data-nav-item><span class="nav-dot"></span><span>Overview</span></li><li class="nav-item" tabindex="0" data-nav-item><span class="nav-dot"></span><span>User Cases</span></li><li class="nav-item" tabindex="0" data-nav-item><span class="nav-dot"></span><span>Interventions</span></li><li class="nav-item" tabindex="0" data-nav-item><span class="nav-dot"></span><span>Approvals</span></li><li class="nav-item" tabindex="0" data-nav-item><span class="nav-dot"></span><span>Audit Log</span></li></ul></section>
|
| 39 |
+
<section class="sidebar-card glass"><div class="section-title">Assigned Lead</div><div class="profile-pill profile-pill-vertical"><strong>Elena Park</strong><span>User Operations Lead</span></div><div class="mini-stat-grid"><div class="mini-stat-card"><span class="mini-stat-label">Active owners</span><strong class="mini-stat-value">16</strong></div><div class="mini-stat-card"><span class="mini-stat-label">Cases on hold</span><strong class="mini-stat-value">12</strong></div><div class="mini-stat-card"><span class="mini-stat-label">Recovered users</span><strong class="mini-stat-value">31</strong></div></div></section>
|
| 40 |
+
<section class="sidebar-card glass"><div class="section-title">Lead Note</div><p data-case-note>Monitor high-value accounts with repeated friction and confirm the next action before closure.</p></section>
|
| 41 |
+
</aside>
|
| 42 |
+
<main class="content-stack">
|
| 43 |
+
<section class="content-card glass toolbar-card"><div class="toolbar-line"><div class="toolbar-left filter-row" data-filter-group><button class="filter-pill filter-toggle is-active" type="button" data-toggle-chip>Segment</button><button class="filter-pill filter-toggle" type="button" data-toggle-chip>Lifecycle stage</button><button class="filter-pill filter-toggle" type="button" data-toggle-chip>Risk level</button><button class="filter-pill filter-toggle" type="button" data-toggle-chip>Owner</button></div><div class="toolbar-right"><span class="chip">Live queue</span><span class="chip">Priority review</span><span class="chip">Retention focus</span></div></div><p class="lead-text">Review account health, retention risk, and pending interventions for active customer segments.</p></section>
|
| 44 |
+
<section class="chart-card glass">
|
| 45 |
+
<div class="chart-card-head">
|
| 46 |
+
<div class="head-meta">
|
| 47 |
+
<span class="status-badge loading" data-load-badge>Loading view</span>
|
| 48 |
+
<span class="chart-caption">Active user case flow</span>
|
| 49 |
+
</div>
|
| 50 |
+
<div class="chart-tools"><button class="row-action-btn" type="button">Export</button><button class="row-action-btn" type="button">Refresh</button><button class="ghost-btn" type="button" data-panel-toggle>Open notes</button><button class="ghost-btn" type="button" data-fullscreen-btn>Expand view</button></div>
|
| 51 |
+
</div>
|
| 52 |
+
<div class="chart-shell slot-l" data-chart-shell>
|
| 53 |
+
<div class="placeholder" data-placeholder>Loading live workspace view...</div>
|
| 54 |
+
<iframe class="chart-frame" data-chart-frame title="Primary view" allowfullscreen></iframe>
|
| 55 |
+
</div>
|
| 56 |
+
<div class="utility-panel" data-utility-panel hidden>
|
| 57 |
+
<div class="utility-panel-head">
|
| 58 |
+
<div>
|
| 59 |
+
<div class="section-title">Lead Note</div>
|
| 60 |
+
<p>The current queue reflects a concentrated effort to retain users who showed intent but encountered friction during critical account steps. Teams are expected to document every outreach attempt, confirm ownership before escalation, and close only when the account is either stable or formally transferred for continued monitoring.</p>
|
| 61 |
+
</div>
|
| 62 |
+
<button class="ghost-btn utility-close-btn" type="button" data-panel-close>Close</button>
|
| 63 |
+
</div>
|
| 64 |
+
<div class="utility-actions"><button class="row-action-btn" type="button">Create case</button><button class="row-action-btn" type="button">Escalate</button></div>
|
| 65 |
+
</div>
|
| 66 |
+
</section>
|
| 67 |
+
<section class="two-column"><section class="content-card glass tab-card" data-tab-scope>
|
| 68 |
+
<div class="card-header">
|
| 69 |
+
<div>
|
| 70 |
+
<div class="section-title">Case Activity</div>
|
| 71 |
+
<p class="card-caption">Recent decisions and follow-up movement</p>
|
| 72 |
+
</div>
|
| 73 |
+
<div class="tab-strip">
|
| 74 |
+
<button class="tab-button is-active" type="button" data-tab-target="alerts">Summary</button>
|
| 75 |
+
<button class="tab-button" type="button" data-tab-target="queue">Cases</button>
|
| 76 |
+
<button class="tab-button" type="button" data-tab-target="stream">Notes</button>
|
| 77 |
+
</div>
|
| 78 |
+
</div>
|
| 79 |
+
<div class="tab-panel is-active" data-tab-panel="alerts"><div class="queue-list"><div class="queue-row" data-interactive-row="alert"><div class="queue-copy"><strong>High-value account awaiting decision</strong><span>No final disposition recorded after manual review</span></div><div class="queue-actions"><button class="row-action-btn" type="button" data-row-action="ack" data-primary-label="Review now" data-secondary-label="Undo">Review now</button><span class="queue-status level-high">High</span></div></div><div class="queue-row" data-interactive-row="alert"><div class="queue-copy"><strong>Outreach backlog rising</strong><span>Follow-up queue has crossed internal response target</span></div><div class="queue-actions"><button class="row-action-btn" type="button" data-row-action="ack" data-primary-label="Rebalance queue" data-secondary-label="Undo">Rebalance queue</button><span class="queue-status level-medium">Medium</span></div></div><div class="queue-row" data-interactive-row="alert"><div class="queue-copy"><strong>Exception note incomplete</strong><span>Policy-sensitive case missing approval rationale</span></div><div class="queue-actions"><button class="row-action-btn" type="button" data-row-action="ack" data-primary-label="Add note" data-secondary-label="Undo">Add note</button><span class="queue-status level-medium">Medium</span></div></div></div></div>
|
| 80 |
+
<div class="tab-panel" data-tab-panel="queue"><div class="queue-list"><div class="queue-row" data-interactive-row="task"><div class="queue-copy"><strong>Confirm owner coverage for priority cases</strong><span>7 cases without confirmed handoff</span></div><div class="queue-actions"><button class="row-action-btn" type="button" data-row-action="complete" data-primary-label="Assign" data-secondary-label="Reopen">Assign</button><span class="queue-status" data-status-label>In progress</span></div></div><div class="queue-row" data-interactive-row="task"><div class="queue-copy"><strong>Complete callback verification</strong><span>Pending contact outcomes need final status</span></div><div class="queue-actions"><button class="row-action-btn" type="button" data-row-action="complete" data-primary-label="Process" data-secondary-label="Reopen">Process</button><span class="queue-status" data-status-label>Queued</span></div></div><div class="queue-row" data-interactive-row="task"><div class="queue-copy"><strong>Close resolved onboarding reviews</strong><span>Cases meet closure conditions after successful recovery</span></div><div class="queue-actions"><button class="row-action-btn" type="button" data-row-action="complete" data-primary-label="Close" data-secondary-label="Reopen">Close</button><span class="queue-status" data-status-label>Ready</span></div></div></div></div>
|
| 81 |
+
<div class="tab-panel" data-tab-panel="stream"><div class="queue-list"><div class="queue-row queue-row-feed" data-interactive-row="feed"><div class="queue-copy"><strong>Owner updated on priority review</strong><span>Routing changed after shift handoff</span></div><div class="queue-actions"><button class="row-action-btn" type="button" data-row-action="ack" data-primary-label="Open" data-secondary-label="Undo">Open</button></div></div><div class="queue-row queue-row-feed" data-interactive-row="feed"><div class="queue-copy"><strong>Recovery contact delivered</strong><span>User response pending confirmation</span></div><div class="queue-actions"><button class="row-action-btn" type="button" data-row-action="ack" data-primary-label="Check" data-secondary-label="Undo">Check</button></div></div><div class="queue-row queue-row-feed" data-interactive-row="feed"><div class="queue-copy"><strong>Manual decision recorded</strong><span>Case moved from hold to monitor</span></div><div class="queue-actions"><button class="row-action-btn" type="button" data-row-action="ack" data-primary-label="View" data-secondary-label="Undo">View</button></div></div><div class="queue-row queue-row-feed" data-interactive-row="feed"><div class="queue-copy"><strong>Risk flag cleared</strong><span>Activity recovered after intervention</span></div><div class="queue-actions"><button class="row-action-btn" type="button" data-row-action="ack" data-primary-label="Inspect" data-secondary-label="Undo">Inspect</button></div></div></div></div>
|
| 82 |
+
</section><article class="content-card glass">
|
| 83 |
+
<div class="section-title">Operational Insight</div>
|
| 84 |
+
<p>Teams are working from the same operating thread so owners, approvals, and follow-up notes stay aligned through the current cycle.</p>
|
| 85 |
+
<div class="progress-list"><div class="progress-row"><div class="progress-meta"><span>Queue clearance</span><strong>72%</strong></div><div class="progress-track"><div class="progress-bar" style="width: 72%"></div></div><div class="progress-note">Handled against current intake</div></div><div class="progress-row"><div class="progress-meta"><span>Outreach completion</span><strong>64%</strong></div><div class="progress-track"><div class="progress-bar" style="width: 64%"></div></div><div class="progress-note">Priority contacts sent and logged</div></div><div class="progress-row"><div class="progress-meta"><span>Approval coverage</span><strong>89%</strong></div><div class="progress-track"><div class="progress-bar" style="width: 89%"></div></div><div class="progress-note">Cases with complete decision trail</div></div></div>
|
| 86 |
+
</article></section>
|
| 87 |
+
<section class="two-column"><article class="support-card glass">
|
| 88 |
+
<div class="section-title">Operational Notes</div>
|
| 89 |
+
<p>Current activity is centered on a rise in support-linked retention risk. Several accounts were routed into manual review after repeated onboarding exits, failed self-service recovery, or policy-sensitive changes that require a documented decision.</p>
|
| 90 |
+
<ul class="bullet-list"><li>High-priority cases are routed to named owners before outreach begins.</li><li>Accounts with repeat friction stay in review until next-step evidence is recorded.</li><li>Policy exceptions require a reason code and final approval note.</li></ul>
|
| 91 |
+
<div class="mini-stat-grid"><div class="mini-stat-card"><span class="mini-stat-label">Active owners</span><strong class="mini-stat-value">16</strong></div><div class="mini-stat-card"><span class="mini-stat-label">Cases on hold</span><strong class="mini-stat-value">12</strong></div><div class="mini-stat-card"><span class="mini-stat-label">Recovered users</span><strong class="mini-stat-value">31</strong></div></div>
|
| 92 |
+
</article><article class="content-card glass"><div class="section-title">Review Signals</div><div class="signal-list"><div class="signal-row"><span>Escalation rate</span><strong>11%</strong></div><div class="signal-row"><span>Policy exceptions</span><strong>9</strong></div><div class="signal-row"><span>Pending callbacks</span><strong>22</strong></div></div><ul class="timeline-list"><li class="timeline-item"><span class="timeline-dot"></span><div><strong>Risk rule triggered</strong><div class="timeline-meta">Account entered review after repeated drop-off behavior</div></div></li><li class="timeline-item"><span class="timeline-dot"></span><div><strong>Operations review started</strong><div class="timeline-meta">Owner assigned and contact path confirmed</div></div></li><li class="timeline-item"><span class="timeline-dot"></span><div><strong>User contacted</strong><div class="timeline-meta">Follow-up sent with recovery guidance and next action</div></div></li><li class="timeline-item"><span class="timeline-dot"></span><div><strong>Decision logged</strong><div class="timeline-meta">Case moved to monitor, close, or escalate</div></div></li></ul></article></section>
|
| 93 |
+
</main>
|
| 94 |
+
</div>
|
| 95 |
+
<p class="footer-note">Access, contact history, and policy decisions are recorded for audit review.</p>
|
| 96 |
+
</div>
|
| 97 |
+
<script src="../../_shared/embedded_template.js"></script>
|
| 98 |
+
</body>
|
| 99 |
+
</html>
|
web_insert/AntV G2/bar/chart_0111_bar.html
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
| 6 |
+
<title>T01 Production Control Board</title>
|
| 7 |
+
<link rel="stylesheet" href="../../_shared/embedded_template.css">
|
| 8 |
+
<style>
|
| 9 |
+
body {
|
| 10 |
+
--page-bg: #08111e;
|
| 11 |
+
--page-bg-strong: #030712;
|
| 12 |
+
--panel-bg: rgba(8, 18, 34, 0.76);
|
| 13 |
+
--panel-solid: #0d1728;
|
| 14 |
+
--panel-border: rgba(125, 211, 252, 0.14);
|
| 15 |
+
--text-main: #ebf4ff;
|
| 16 |
+
--text-soft: #8ea5bf;
|
| 17 |
+
--chip-bg: rgba(34, 211, 238, 0.08);
|
| 18 |
+
--accent: #2dd4bf;
|
| 19 |
+
--accent-soft: rgba(45, 212, 191, 0.16);
|
| 20 |
+
--accent-alt: #22d3ee;
|
| 21 |
+
--hero-glow-a: rgba(56, 189, 248, 0.16);
|
| 22 |
+
--hero-glow-b: rgba(45, 212, 191, 0.14);
|
| 23 |
+
--shadow: 0 32px 70px rgba(3, 7, 18, 0.38);
|
| 24 |
+
}
|
| 25 |
+
</style>
|
| 26 |
+
</head>
|
| 27 |
+
<body class="theme-dark template-body" data-template-id="T01" data-layout="L1" data-default-chart-src="../../_chart_sources/AntV G2/bar/chart_0111_bar.html" data-source-chart="web/AntV G2/bar/chart_0111_bar.html" data-output-mode="final" data-final-template="T01">
|
| 28 |
+
<!-- generated from web/AntV G2/bar/chart_0111_bar.html with T01 -->
|
| 29 |
+
<div class="page-shell page-shell-wide">
|
| 30 |
+
<header class="topbar glass">
|
| 31 |
+
<div class="brand-group">
|
| 32 |
+
<div class="brand-mark">T01</div>
|
| 33 |
+
<div>
|
| 34 |
+
<div class="eyebrow">Industrial Operations</div>
|
| 35 |
+
<h1>Production Control Board</h1>
|
| 36 |
+
<p data-case-name>Hold Review 4-118</p>
|
| 37 |
+
</div>
|
| 38 |
+
</div>
|
| 39 |
+
<div class="toolbar-actions">
|
| 40 |
+
<span class="chip">Line 4</span><span class="chip">Active Run</span><span class="chip">Quality Hold</span><span class="chip">Maintenance Watch</span><span class="chip">Supervisor Review</span>
|
| 41 |
+
<button class="ghost-btn" type="button">Review hold</button><button class="ghost-btn" type="button">Send update</button>
|
| 42 |
+
<button class="action-btn" type="button">Open incident</button>
|
| 43 |
+
</div>
|
| 44 |
+
</header>
|
| 45 |
+
<section class="hero-banner glass">
|
| 46 |
+
<div class="hero-copy">
|
| 47 |
+
<div class="eyebrow">Needs oversight</div>
|
| 48 |
+
<h2>Live operating status for Line 4, utility load, quality hold activity, and shift response actions across the assembly floor.</h2>
|
| 49 |
+
<p>Line 4 remains in active production with stable throughput after an earlier interruption at the sealing station. Quality has released the last contained batch, but one hold remains open on a pallet group awaiting final disposition from the floor lead.</p>
|
| 50 |
+
</div>
|
| 51 |
+
<div class="hero-side">
|
| 52 |
+
<div class="profile-pill"><strong>Dana Mercer</strong><span>Floor Operations Supervisor</span></div>
|
| 53 |
+
<div class="filter-row" data-filter-group><button class="filter-pill filter-toggle is-active" type="button" data-toggle-chip>Area: Final Assembly</button><button class="filter-pill filter-toggle" type="button" data-toggle-chip>Run State: Active</button><button class="filter-pill filter-toggle" type="button" data-toggle-chip>Priority: High</button><button class="filter-pill filter-toggle" type="button" data-toggle-chip>View: Plant Standard</button></div>
|
| 54 |
+
</div>
|
| 55 |
+
</section>
|
| 56 |
+
<section class="summary-grid"><article class="metric-card glass"><div class="eyebrow">Units Completed</div><div class="metric-value">18,420</div><div class="metric-sub">Tracking above planned output for the current run</div></article><article class="metric-card glass"><div class="eyebrow">Scrap Rate</div><div class="metric-value">1.8%</div><div class="metric-sub">Within control band after recent line adjustment</div></article><article class="metric-card glass"><div class="eyebrow">Unplanned Stops</div><div class="metric-value">3</div><div class="metric-sub">Two cleared by local team, one under review</div></article><article class="metric-card glass"><div class="eyebrow">Utility Load</div><div class="metric-value">82%</div><div class="metric-sub">Stable with no curtailment in effect</div></article></section>
|
| 57 |
+
<main class="layout-l1">
|
| 58 |
+
<section class="chart-card glass">
|
| 59 |
+
<div class="chart-card-head">
|
| 60 |
+
<div class="head-meta">
|
| 61 |
+
<span class="status-badge loading" data-load-badge>Loading view</span>
|
| 62 |
+
<span class="chart-caption">Line performance</span>
|
| 63 |
+
</div>
|
| 64 |
+
<div class="chart-tools"><button class="row-action-btn" type="button">Filter</button><button class="row-action-btn" type="button">Export</button><button class="ghost-btn" type="button" data-panel-toggle>Open notes</button><button class="ghost-btn" type="button" data-fullscreen-btn>Expand view</button></div>
|
| 65 |
+
</div>
|
| 66 |
+
<div class="chart-shell slot-xl" data-chart-shell>
|
| 67 |
+
<div class="placeholder" data-placeholder>Loading live workspace view...</div>
|
| 68 |
+
<iframe class="chart-frame" data-chart-frame title="Primary view" allowfullscreen></iframe>
|
| 69 |
+
</div>
|
| 70 |
+
<div class="utility-panel" data-utility-panel hidden>
|
| 71 |
+
<div class="utility-panel-head">
|
| 72 |
+
<div>
|
| 73 |
+
<div class="section-title">Supervisor Note</div>
|
| 74 |
+
<p>The line returned to output after a short stop, but a recurring mechanical signal and one open quality hold mean the team is holding standard speed changes until both items are formally cleared.</p>
|
| 75 |
+
</div>
|
| 76 |
+
<button class="ghost-btn utility-close-btn" type="button" data-panel-close>Close</button>
|
| 77 |
+
</div>
|
| 78 |
+
<div class="utility-actions"><button class="row-action-btn" type="button">Review hold</button><button class="row-action-btn" type="button">Send update</button></div>
|
| 79 |
+
</div>
|
| 80 |
+
</section>
|
| 81 |
+
<section class="support-grid support-grid-wide">
|
| 82 |
+
<article class="support-card glass">
|
| 83 |
+
<div class="section-title">Coordination Notes</div>
|
| 84 |
+
<p>Maintenance is monitoring recurring vibration on the conveyor drive. The issue is not blocking output, though the team has limited ramp changes until the inspection is completed and signed off.</p>
|
| 85 |
+
<ul class="bullet-list"><li>One hold lot is isolated and tagged for review</li><li>Conveyor drive inspection is in progress</li><li>No staffing gap reported for the current shift</li><li>Output recovery is holding after the restart</li></ul>
|
| 86 |
+
<div class="mini-stat-grid"><div class="mini-stat-card"><span class="mini-stat-label">Open Holds</span><strong class="mini-stat-value">1</strong></div><div class="mini-stat-card"><span class="mini-stat-label">Active Calls</span><strong class="mini-stat-value">2</strong></div><div class="mini-stat-card"><span class="mini-stat-label">Signed Notes</span><strong class="mini-stat-value">7</strong></div></div>
|
| 87 |
+
</article>
|
| 88 |
+
<section class="content-card glass tab-card" data-tab-scope>
|
| 89 |
+
<div class="card-header">
|
| 90 |
+
<div>
|
| 91 |
+
<div class="section-title">Shift Activity</div>
|
| 92 |
+
<p class="card-caption">Coordinated actions across production, quality, and maintenance</p>
|
| 93 |
+
</div>
|
| 94 |
+
<div class="tab-strip">
|
| 95 |
+
<button class="tab-button is-active" type="button" data-tab-target="alerts">Status</button>
|
| 96 |
+
<button class="tab-button" type="button" data-tab-target="queue">Queue</button>
|
| 97 |
+
<button class="tab-button" type="button" data-tab-target="stream">Notes</button>
|
| 98 |
+
</div>
|
| 99 |
+
</div>
|
| 100 |
+
<div class="tab-panel is-active" data-tab-panel="alerts"><div class="queue-list"><div class="queue-row" data-interactive-row="alert"><div class="queue-copy"><strong>Vibration watch remains active at conveyor drive</strong><span>Raised by maintenance control after repeated variance</span></div><div class="queue-actions"><button class="row-action-btn" type="button" data-row-action="ack" data-primary-label="Escalate" data-secondary-label="Undo">Escalate</button><span class="queue-status level-high">High</span></div></div><div class="queue-row" data-interactive-row="alert"><div class="queue-copy"><strong>Contained pallet group awaiting disposition</strong><span>Quality review pending final supervisor signoff</span></div><div class="queue-actions"><button class="row-action-btn" type="button" data-row-action="ack" data-primary-label="Review" data-secondary-label="Undo">Review</button><span class="queue-status level-medium">Medium</span></div></div><div class="queue-row" data-interactive-row="alert"><div class="queue-copy"><strong>Restart settings locked for this run</strong><span>Process engineering requested no manual ramp changes</span></div><div class="queue-actions"><button class="row-action-btn" type="button" data-row-action="ack" data-primary-label="Acknowledge" data-secondary-label="Undo">Acknowledge</button><span class="queue-status level-low">Low</span></div></div></div></div>
|
| 101 |
+
<div class="tab-panel" data-tab-panel="queue"><div class="queue-list"><div class="queue-row" data-interactive-row="task"><div class="queue-copy"><strong>Confirm release path for held material</strong><span>Owner: Quality lead</span></div><div class="queue-actions"><button class="row-action-btn" type="button" data-row-action="complete" data-primary-label="Open" data-secondary-label="Reopen">Open</button><span class="queue-status" data-status-label>In review</span></div></div><div class="queue-row" data-interactive-row="task"><div class="queue-copy"><strong>Complete conveyor drive inspection log</strong><span>Owner: Maintenance technician</span></div><div class="queue-actions"><button class="row-action-btn" type="button" data-row-action="complete" data-primary-label="Update" data-secondary-label="Reopen">Update</button><span class="queue-status" data-status-label>In progress</span></div></div><div class="queue-row" data-interactive-row="task"><div class="queue-copy"><strong>Post revised run note to floor team</strong><span>Owner: Shift supervisor</span></div><div class="queue-actions"><button class="row-action-btn" type="button" data-row-action="complete" data-primary-label="Send" data-secondary-label="Reopen">Send</button><span class="queue-status" data-status-label>Pending</span></div></div></div></div>
|
| 102 |
+
<div class="tab-panel" data-tab-panel="stream"><div class="queue-list"><div class="queue-row queue-row-feed" data-interactive-row="feed"><div class="queue-copy"><strong>Seal station recovered to normal cycle time</strong><span>Logged by operations</span></div><div class="queue-actions"><button class="row-action-btn" type="button" data-row-action="ack" data-primary-label="View" data-secondary-label="Undo">View</button></div></div><div class="queue-row queue-row-feed" data-interactive-row="feed"><div class="queue-copy"><strong>Quality hold boundary confirmed on affected lot</strong><span>Logged by quality</span></div><div class="queue-actions"><button class="row-action-btn" type="button" data-row-action="ack" data-primary-label="Open" data-secondary-label="Undo">Open</button></div></div><div class="queue-row queue-row-feed" data-interactive-row="feed"><div class="queue-copy"><strong>Drive housing check started at restricted speed</strong><span>Logged by maintenance</span></div><div class="queue-actions"><button class="row-action-btn" type="button" data-row-action="ack" data-primary-label="Track" data-secondary-label="Undo">Track</button></div></div><div class="queue-row queue-row-feed" data-interactive-row="feed"><div class="queue-copy"><strong>Supervisor requested tighter response updates</strong><span>Logged by floor lead</span></div><div class="queue-actions"><button class="row-action-btn" type="button" data-row-action="ack" data-primary-label="Read" data-secondary-label="Undo">Read</button></div></div></div></div>
|
| 103 |
+
</section>
|
| 104 |
+
<article class="support-card glass">
|
| 105 |
+
<div class="section-title">Supervisor Note</div>
|
| 106 |
+
<p>The floor is operating, but decisions on release, inspection, and speed changes still require close coordination between teams.</p>
|
| 107 |
+
<div class="signal-list"><div class="signal-row"><span>Run State</span><strong>Active with restriction</strong></div><div class="signal-row"><span>Quality Status</span><strong>1 hold open</strong></div><div class="signal-row"><span>Maintenance Status</span><strong>Inspection underway</strong></div></div>
|
| 108 |
+
<p class="inline-note" data-case-note>Contained material remains off flow until quality and operations complete joint release.</p>
|
| 109 |
+
<details class="detail-block">
|
| 110 |
+
<summary>Why restricted</summary>
|
| 111 |
+
<p>The line returned to output after a short stop, but a recurring mechanical signal and one open quality hold mean the team is holding standard speed changes until both items are formally cleared.</p>
|
| 112 |
+
</details>
|
| 113 |
+
</article>
|
| 114 |
+
</section>
|
| 115 |
+
<article class="content-card glass">
|
| 116 |
+
<div class="section-title">Operational Insight</div>
|
| 117 |
+
<p>Supervisors are using this board to keep production, quality, and maintenance aligned on the same operating picture so decisions on holds, rework, and response timing stay consistent.</p>
|
| 118 |
+
<div class="progress-list"><div class="progress-row"><div class="progress-meta"><span>Run Completion</span><strong>76%</strong></div><div class="progress-track"><div class="progress-bar" style="width: 76%"></div></div><div class="progress-note">Current production order</div></div><div class="progress-row"><div class="progress-meta"><span>Inspection Coverage</span><strong>61%</strong></div><div class="progress-track"><div class="progress-bar" style="width: 61%"></div></div><div class="progress-note">Targeted line check</div></div><div class="progress-row"><div class="progress-meta"><span>Disposition Workflow</span><strong>48%</strong></div><div class="progress-track"><div class="progress-bar" style="width: 48%"></div></div><div class="progress-note">Held material release path</div></div></div>
|
| 119 |
+
</article>
|
| 120 |
+
</main>
|
| 121 |
+
<p class="footer-note">Use this board to confirm decisions before releasing held material or changing line speed.</p>
|
| 122 |
+
</div>
|
| 123 |
+
<script src="../../_shared/embedded_template.js"></script>
|
| 124 |
+
</body>
|
| 125 |
+
</html>
|
web_insert/_chart_sources/AntV G2/bar/chart_0110_bar.html
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
+
<title>简单柱形图</title>
|
| 7 |
+
<style>
|
| 8 |
+
html, body {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
width: 100%;
|
| 12 |
+
min-height: 100%;
|
| 13 |
+
font-family: Arial, sans-serif;
|
| 14 |
+
background: #ffffff;
|
| 15 |
+
}
|
| 16 |
+
.chart-container {
|
| 17 |
+
width: 100%;
|
| 18 |
+
height: 100vh;
|
| 19 |
+
}
|
| 20 |
+
</style>
|
| 21 |
+
<script src="./g2.min.js"></script>
|
| 22 |
+
</head>
|
| 23 |
+
<body>
|
| 24 |
+
<div id="container" class="chart-container"></div>
|
| 25 |
+
<script>
|
| 26 |
+
(async () => {
|
| 27 |
+
const __seedStart = 3311550756;
|
| 28 |
+
let __seed = __seedStart;
|
| 29 |
+
const __originalMathRandom = Math.random;
|
| 30 |
+
function __seededRandom() {
|
| 31 |
+
__seed = (__seed * 1664525 + 1013904223) >>> 0;
|
| 32 |
+
return __seed / 4294967296;
|
| 33 |
+
}
|
| 34 |
+
Math.random = __seededRandom;
|
| 35 |
+
try {
|
| 36 |
+
const { Chart } = G2;
|
| 37 |
+
|
| 38 |
+
const data = [
|
| 39 |
+
{ letter: 'A', frequency: 0.08167 },
|
| 40 |
+
{ letter: 'B', frequency: 0.01492 },
|
| 41 |
+
{ letter: 'C', frequency: 0.02782 },
|
| 42 |
+
{ letter: 'D', frequency: 0.04253 },
|
| 43 |
+
{ letter: 'E', frequency: 0.12702 },
|
| 44 |
+
{ letter: 'F', frequency: 0.02288 },
|
| 45 |
+
{ letter: 'G', frequency: 0.02015 },
|
| 46 |
+
{ letter: 'H', frequency: 0.06094 },
|
| 47 |
+
{ letter: 'I', frequency: 0.06966 },
|
| 48 |
+
{ letter: 'J', frequency: 0.00153 },
|
| 49 |
+
{ letter: 'K', frequency: 0.00772 },
|
| 50 |
+
{ letter: 'L', frequency: 0.04025 },
|
| 51 |
+
{ letter: 'M', frequency: 0.02406 },
|
| 52 |
+
{ letter: 'N', frequency: 0.06749 },
|
| 53 |
+
{ letter: 'O', frequency: 0.07507 },
|
| 54 |
+
{ letter: 'P', frequency: 0.01929 },
|
| 55 |
+
{ letter: 'Q', frequency: 0.00095 },
|
| 56 |
+
{ letter: 'R', frequency: 0.05987 },
|
| 57 |
+
{ letter: 'S', frequency: 0.06327 },
|
| 58 |
+
{ letter: 'T', frequency: 0.09056 },
|
| 59 |
+
{ letter: 'U', frequency: 0.02758 },
|
| 60 |
+
{ letter: 'V', frequency: 0.00978 },
|
| 61 |
+
{ letter: 'W', frequency: 0.0236 },
|
| 62 |
+
{ letter: 'X', frequency: 0.0015 },
|
| 63 |
+
{ letter: 'Y', frequency: 0.01974 },
|
| 64 |
+
{ letter: 'Z', frequency: 0.00074 },
|
| 65 |
+
];
|
| 66 |
+
const chart = new Chart({
|
| 67 |
+
container: 'container',
|
| 68 |
+
autoFit: true,
|
| 69 |
+
});
|
| 70 |
+
|
| 71 |
+
chart.interval().data(data).encode('x', 'letter').encode('y', 'frequency');
|
| 72 |
+
|
| 73 |
+
chart.render();
|
| 74 |
+
} catch (error) {
|
| 75 |
+
console.error(error);
|
| 76 |
+
const pre = document.createElement('pre');
|
| 77 |
+
pre.style.whiteSpace = 'pre-wrap';
|
| 78 |
+
pre.style.padding = '12px';
|
| 79 |
+
pre.style.margin = '12px';
|
| 80 |
+
pre.style.border = '1px solid #ddd';
|
| 81 |
+
pre.textContent = String(error && error.stack ? error.stack : error);
|
| 82 |
+
document.body.appendChild(pre);
|
| 83 |
+
} finally {
|
| 84 |
+
Math.random = __originalMathRandom;
|
| 85 |
+
}
|
| 86 |
+
})();
|
| 87 |
+
</script>
|
| 88 |
+
<!-- source: https://g2.antv.antgroup.com/examples/general/interval/#bar-basic -->
|
| 89 |
+
</body>
|
| 90 |
+
</html>
|
web_insert/_chart_sources/AntV G2/bar/chart_0111_bar.html
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
+
<title>简单条形图</title>
|
| 7 |
+
<style>
|
| 8 |
+
html, body {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
width: 100%;
|
| 12 |
+
min-height: 100%;
|
| 13 |
+
font-family: Arial, sans-serif;
|
| 14 |
+
background: #ffffff;
|
| 15 |
+
}
|
| 16 |
+
.chart-container {
|
| 17 |
+
width: 100%;
|
| 18 |
+
height: 100vh;
|
| 19 |
+
}
|
| 20 |
+
</style>
|
| 21 |
+
<script src="./g2.min.js"></script>
|
| 22 |
+
</head>
|
| 23 |
+
<body>
|
| 24 |
+
<div id="container" class="chart-container"></div>
|
| 25 |
+
<script>
|
| 26 |
+
(async () => {
|
| 27 |
+
const __seedStart = 1571327509;
|
| 28 |
+
let __seed = __seedStart;
|
| 29 |
+
const __originalMathRandom = Math.random;
|
| 30 |
+
function __seededRandom() {
|
| 31 |
+
__seed = (__seed * 1664525 + 1013904223) >>> 0;
|
| 32 |
+
return __seed / 4294967296;
|
| 33 |
+
}
|
| 34 |
+
Math.random = __seededRandom;
|
| 35 |
+
try {
|
| 36 |
+
const { Chart } = G2;
|
| 37 |
+
|
| 38 |
+
const data = [
|
| 39 |
+
{ year: '1951 年', sales: 38 },
|
| 40 |
+
{ year: '1952 年', sales: 52 },
|
| 41 |
+
{ year: '1956 年', sales: 61 },
|
| 42 |
+
{ year: '1957 年', sales: 145 },
|
| 43 |
+
{ year: '1958 年', sales: 48 },
|
| 44 |
+
{ year: '1959 年', sales: 38 },
|
| 45 |
+
{ year: '1960 年', sales: 38 },
|
| 46 |
+
{ year: '1962 年', sales: 38 },
|
| 47 |
+
];
|
| 48 |
+
|
| 49 |
+
const chart = new Chart({
|
| 50 |
+
container: 'container',
|
| 51 |
+
autoFit: true,
|
| 52 |
+
});
|
| 53 |
+
|
| 54 |
+
chart
|
| 55 |
+
.interval()
|
| 56 |
+
.coordinate({ transform: [{ type: 'transpose' }] })
|
| 57 |
+
.data(data)
|
| 58 |
+
.encode('x', 'year')
|
| 59 |
+
.encode('y', 'sales');
|
| 60 |
+
|
| 61 |
+
chart.render();
|
| 62 |
+
} catch (error) {
|
| 63 |
+
console.error(error);
|
| 64 |
+
const pre = document.createElement('pre');
|
| 65 |
+
pre.style.whiteSpace = 'pre-wrap';
|
| 66 |
+
pre.style.padding = '12px';
|
| 67 |
+
pre.style.margin = '12px';
|
| 68 |
+
pre.style.border = '1px solid #ddd';
|
| 69 |
+
pre.textContent = String(error && error.stack ? error.stack : error);
|
| 70 |
+
document.body.appendChild(pre);
|
| 71 |
+
} finally {
|
| 72 |
+
Math.random = __originalMathRandom;
|
| 73 |
+
}
|
| 74 |
+
})();
|
| 75 |
+
</script>
|
| 76 |
+
<!-- source: https://g2.antv.antgroup.com/examples/general/interval/#bar-basic-transposed -->
|
| 77 |
+
</body>
|
| 78 |
+
</html>
|
web_insert/_chart_sources/AntV G2/bar/g2.min.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
web_insert/_shared/embedded_template.css
ADDED
|
@@ -0,0 +1,849 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
:root {
|
| 2 |
+
--page-bg: #0f172a;
|
| 3 |
+
--page-bg-strong: #020617;
|
| 4 |
+
--panel-bg: rgba(15, 23, 42, 0.78);
|
| 5 |
+
--panel-solid: #111827;
|
| 6 |
+
--panel-border: rgba(148, 163, 184, 0.18);
|
| 7 |
+
--text-main: #e5eef8;
|
| 8 |
+
--text-soft: #95a6bd;
|
| 9 |
+
--accent: #22c55e;
|
| 10 |
+
--accent-soft: rgba(34, 197, 94, 0.16);
|
| 11 |
+
--accent-alt: #14b8a6;
|
| 12 |
+
--chip-bg: rgba(148, 163, 184, 0.14);
|
| 13 |
+
--shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
|
| 14 |
+
--content-max: 1460px;
|
| 15 |
+
--hero-glow-a: rgba(56, 189, 248, 0.12);
|
| 16 |
+
--hero-glow-b: rgba(34, 197, 94, 0.1);
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
* {
|
| 20 |
+
box-sizing: border-box;
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
html,
|
| 24 |
+
body {
|
| 25 |
+
margin: 0;
|
| 26 |
+
min-height: 100%;
|
| 27 |
+
font-family: "Aptos", "Segoe UI Variable", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
|
| 28 |
+
color: var(--text-main);
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
body {
|
| 32 |
+
position: relative;
|
| 33 |
+
background:
|
| 34 |
+
radial-gradient(circle at 0% 0%, var(--hero-glow-a), transparent 28%),
|
| 35 |
+
radial-gradient(circle at 100% 0%, var(--hero-glow-b), transparent 26%),
|
| 36 |
+
linear-gradient(180deg, var(--page-bg-strong) 0%, var(--page-bg) 100%);
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
body::before,
|
| 40 |
+
body::after {
|
| 41 |
+
content: "";
|
| 42 |
+
position: fixed;
|
| 43 |
+
inset: auto auto 12% -8%;
|
| 44 |
+
width: 36vw;
|
| 45 |
+
height: 36vw;
|
| 46 |
+
border-radius: 999px;
|
| 47 |
+
pointer-events: none;
|
| 48 |
+
filter: blur(70px);
|
| 49 |
+
background: color-mix(in srgb, var(--accent) 26%, transparent);
|
| 50 |
+
opacity: 0.32;
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
body::after {
|
| 54 |
+
inset: 8% -10% auto auto;
|
| 55 |
+
background: color-mix(in srgb, var(--accent-alt) 22%, transparent);
|
| 56 |
+
opacity: 0.24;
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
.page-shell {
|
| 60 |
+
position: relative;
|
| 61 |
+
z-index: 1;
|
| 62 |
+
width: min(var(--content-max), calc(100vw - 44px));
|
| 63 |
+
margin: 22px auto 52px;
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
.page-shell-article {
|
| 67 |
+
width: min(1280px, calc(100vw - 44px));
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
.glass {
|
| 71 |
+
background: var(--panel-bg);
|
| 72 |
+
border: 1px solid var(--panel-border);
|
| 73 |
+
border-radius: 24px;
|
| 74 |
+
box-shadow: var(--shadow);
|
| 75 |
+
backdrop-filter: blur(18px);
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
.topbar,
|
| 79 |
+
.hero-banner,
|
| 80 |
+
.report-header,
|
| 81 |
+
.metric-card,
|
| 82 |
+
.support-card,
|
| 83 |
+
.content-card,
|
| 84 |
+
.sidebar-card,
|
| 85 |
+
.article-card,
|
| 86 |
+
.chart-card {
|
| 87 |
+
position: relative;
|
| 88 |
+
overflow: hidden;
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
.topbar::after,
|
| 92 |
+
.hero-banner::after,
|
| 93 |
+
.report-header::after,
|
| 94 |
+
.metric-card::after,
|
| 95 |
+
.support-card::after,
|
| 96 |
+
.content-card::after,
|
| 97 |
+
.sidebar-card::after,
|
| 98 |
+
.article-card::after,
|
| 99 |
+
.chart-card::after {
|
| 100 |
+
content: "";
|
| 101 |
+
position: absolute;
|
| 102 |
+
inset: 0 auto auto 0;
|
| 103 |
+
width: 100%;
|
| 104 |
+
height: 1px;
|
| 105 |
+
background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 28%, transparent), transparent 75%);
|
| 106 |
+
opacity: 0.8;
|
| 107 |
+
}
|
| 108 |
+
|
| 109 |
+
.topbar {
|
| 110 |
+
display: flex;
|
| 111 |
+
align-items: center;
|
| 112 |
+
justify-content: space-between;
|
| 113 |
+
gap: 18px;
|
| 114 |
+
padding: 22px 24px;
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
.brand-group {
|
| 118 |
+
display: flex;
|
| 119 |
+
align-items: center;
|
| 120 |
+
gap: 16px;
|
| 121 |
+
}
|
| 122 |
+
|
| 123 |
+
.brand-mark {
|
| 124 |
+
display: grid;
|
| 125 |
+
place-items: center;
|
| 126 |
+
width: 50px;
|
| 127 |
+
height: 50px;
|
| 128 |
+
border-radius: 16px;
|
| 129 |
+
background: linear-gradient(135deg, var(--accent-soft) 0%, color-mix(in srgb, var(--accent-alt) 24%, transparent) 100%);
|
| 130 |
+
border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
|
| 131 |
+
font-weight: 800;
|
| 132 |
+
letter-spacing: 0.04em;
|
| 133 |
+
}
|
| 134 |
+
|
| 135 |
+
.topbar h1,
|
| 136 |
+
.report-header h1,
|
| 137 |
+
.hero-copy h2,
|
| 138 |
+
.sidebar-title {
|
| 139 |
+
margin: 6px 0 0;
|
| 140 |
+
line-height: 1.06;
|
| 141 |
+
}
|
| 142 |
+
|
| 143 |
+
.topbar h1,
|
| 144 |
+
.report-header h1 {
|
| 145 |
+
font-size: clamp(30px, 3vw, 38px);
|
| 146 |
+
}
|
| 147 |
+
|
| 148 |
+
.hero-copy h2 {
|
| 149 |
+
font-size: clamp(28px, 2.5vw, 34px);
|
| 150 |
+
}
|
| 151 |
+
|
| 152 |
+
.topbar p,
|
| 153 |
+
.report-lead,
|
| 154 |
+
.lead-text,
|
| 155 |
+
.hero-copy p,
|
| 156 |
+
.content-card p,
|
| 157 |
+
.support-card p,
|
| 158 |
+
.sidebar-card p,
|
| 159 |
+
.article-card p {
|
| 160 |
+
color: var(--text-soft);
|
| 161 |
+
line-height: 1.76;
|
| 162 |
+
}
|
| 163 |
+
|
| 164 |
+
.toolbar-actions,
|
| 165 |
+
.filter-row,
|
| 166 |
+
.toolbar-line,
|
| 167 |
+
.report-toolbar,
|
| 168 |
+
.toolbar-left,
|
| 169 |
+
.toolbar-right,
|
| 170 |
+
.chart-tools,
|
| 171 |
+
.queue-actions {
|
| 172 |
+
display: flex;
|
| 173 |
+
flex-wrap: wrap;
|
| 174 |
+
gap: 10px;
|
| 175 |
+
}
|
| 176 |
+
|
| 177 |
+
.chip,
|
| 178 |
+
.filter-pill,
|
| 179 |
+
.action-btn,
|
| 180 |
+
.ghost-btn,
|
| 181 |
+
.status-badge,
|
| 182 |
+
.report-code {
|
| 183 |
+
border-radius: 999px;
|
| 184 |
+
}
|
| 185 |
+
|
| 186 |
+
.chip,
|
| 187 |
+
.filter-pill,
|
| 188 |
+
.status-badge,
|
| 189 |
+
.report-code {
|
| 190 |
+
border: 1px solid var(--panel-border);
|
| 191 |
+
background: var(--chip-bg);
|
| 192 |
+
padding: 8px 12px;
|
| 193 |
+
font-size: 13px;
|
| 194 |
+
}
|
| 195 |
+
|
| 196 |
+
.filter-pill {
|
| 197 |
+
background: color-mix(in srgb, var(--accent-soft) 58%, var(--chip-bg));
|
| 198 |
+
}
|
| 199 |
+
|
| 200 |
+
button.filter-pill {
|
| 201 |
+
border: 1px solid var(--panel-border);
|
| 202 |
+
color: inherit;
|
| 203 |
+
font: inherit;
|
| 204 |
+
cursor: pointer;
|
| 205 |
+
}
|
| 206 |
+
|
| 207 |
+
.filter-toggle.is-active {
|
| 208 |
+
border-color: color-mix(in srgb, var(--accent) 44%, transparent);
|
| 209 |
+
background: color-mix(in srgb, var(--accent-soft) 76%, transparent);
|
| 210 |
+
}
|
| 211 |
+
|
| 212 |
+
.status-badge.loaded {
|
| 213 |
+
background: var(--accent-soft);
|
| 214 |
+
color: var(--accent);
|
| 215 |
+
}
|
| 216 |
+
|
| 217 |
+
.status-badge.loading {
|
| 218 |
+
color: #f59e0b;
|
| 219 |
+
}
|
| 220 |
+
|
| 221 |
+
.status-badge.error {
|
| 222 |
+
color: #ef4444;
|
| 223 |
+
}
|
| 224 |
+
|
| 225 |
+
.action-btn,
|
| 226 |
+
.ghost-btn {
|
| 227 |
+
padding: 10px 15px;
|
| 228 |
+
font-size: 14px;
|
| 229 |
+
cursor: pointer;
|
| 230 |
+
transition: transform 0.18s ease, opacity 0.18s ease;
|
| 231 |
+
}
|
| 232 |
+
|
| 233 |
+
.action-btn {
|
| 234 |
+
border: none;
|
| 235 |
+
font-weight: 700;
|
| 236 |
+
color: #041019;
|
| 237 |
+
background: linear-gradient(135deg, var(--accent) 0%, var(--accent-alt) 100%);
|
| 238 |
+
}
|
| 239 |
+
|
| 240 |
+
.ghost-btn {
|
| 241 |
+
border: 1px solid var(--panel-border);
|
| 242 |
+
background: var(--chip-bg);
|
| 243 |
+
color: inherit;
|
| 244 |
+
}
|
| 245 |
+
|
| 246 |
+
.action-btn:hover,
|
| 247 |
+
.ghost-btn:hover {
|
| 248 |
+
transform: translateY(-1px);
|
| 249 |
+
}
|
| 250 |
+
|
| 251 |
+
.row-action-btn {
|
| 252 |
+
border: 1px solid var(--panel-border);
|
| 253 |
+
background: color-mix(in srgb, var(--chip-bg) 92%, transparent);
|
| 254 |
+
color: inherit;
|
| 255 |
+
font: inherit;
|
| 256 |
+
font-size: 12px;
|
| 257 |
+
padding: 8px 10px;
|
| 258 |
+
border-radius: 999px;
|
| 259 |
+
cursor: pointer;
|
| 260 |
+
transition: transform 0.18s ease, background 0.18s ease;
|
| 261 |
+
}
|
| 262 |
+
|
| 263 |
+
.row-action-btn:hover {
|
| 264 |
+
transform: translateY(-1px);
|
| 265 |
+
background: color-mix(in srgb, var(--accent-soft) 62%, transparent);
|
| 266 |
+
}
|
| 267 |
+
|
| 268 |
+
.eyebrow,
|
| 269 |
+
.section-title {
|
| 270 |
+
font-size: 12px;
|
| 271 |
+
letter-spacing: 0.1em;
|
| 272 |
+
text-transform: uppercase;
|
| 273 |
+
color: var(--text-soft);
|
| 274 |
+
}
|
| 275 |
+
|
| 276 |
+
.section-title {
|
| 277 |
+
margin-bottom: 14px;
|
| 278 |
+
}
|
| 279 |
+
|
| 280 |
+
.hero-banner,
|
| 281 |
+
.report-header {
|
| 282 |
+
margin-top: 18px;
|
| 283 |
+
padding: 26px;
|
| 284 |
+
}
|
| 285 |
+
|
| 286 |
+
.hero-banner {
|
| 287 |
+
display: grid;
|
| 288 |
+
grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
|
| 289 |
+
gap: 18px;
|
| 290 |
+
}
|
| 291 |
+
|
| 292 |
+
.hero-banner-compact {
|
| 293 |
+
margin-top: 0;
|
| 294 |
+
}
|
| 295 |
+
|
| 296 |
+
.hero-side,
|
| 297 |
+
.profile-pill,
|
| 298 |
+
.profile-pill-vertical {
|
| 299 |
+
display: grid;
|
| 300 |
+
gap: 12px;
|
| 301 |
+
}
|
| 302 |
+
|
| 303 |
+
.profile-pill {
|
| 304 |
+
padding: 14px 16px;
|
| 305 |
+
border-radius: 20px;
|
| 306 |
+
background: color-mix(in srgb, var(--chip-bg) 85%, transparent);
|
| 307 |
+
border: 1px solid var(--panel-border);
|
| 308 |
+
}
|
| 309 |
+
|
| 310 |
+
.profile-pill strong {
|
| 311 |
+
font-size: 16px;
|
| 312 |
+
}
|
| 313 |
+
|
| 314 |
+
.profile-pill span {
|
| 315 |
+
color: var(--text-soft);
|
| 316 |
+
font-size: 13px;
|
| 317 |
+
}
|
| 318 |
+
|
| 319 |
+
.summary-grid,
|
| 320 |
+
.support-grid,
|
| 321 |
+
.two-column {
|
| 322 |
+
display: grid;
|
| 323 |
+
gap: 18px;
|
| 324 |
+
}
|
| 325 |
+
|
| 326 |
+
.summary-grid {
|
| 327 |
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
| 328 |
+
margin-top: 18px;
|
| 329 |
+
}
|
| 330 |
+
|
| 331 |
+
.support-grid {
|
| 332 |
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
| 333 |
+
margin-top: 18px;
|
| 334 |
+
}
|
| 335 |
+
|
| 336 |
+
.two-column {
|
| 337 |
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
| 338 |
+
}
|
| 339 |
+
|
| 340 |
+
.metric-card,
|
| 341 |
+
.support-card,
|
| 342 |
+
.content-card,
|
| 343 |
+
.sidebar-card,
|
| 344 |
+
.article-card {
|
| 345 |
+
padding: 20px 22px;
|
| 346 |
+
}
|
| 347 |
+
|
| 348 |
+
.metric-value {
|
| 349 |
+
margin-top: 12px;
|
| 350 |
+
font-size: 30px;
|
| 351 |
+
font-weight: 800;
|
| 352 |
+
}
|
| 353 |
+
|
| 354 |
+
.metric-sub {
|
| 355 |
+
margin-top: 8px;
|
| 356 |
+
color: var(--text-soft);
|
| 357 |
+
font-size: 13px;
|
| 358 |
+
}
|
| 359 |
+
|
| 360 |
+
.layout-l1,
|
| 361 |
+
.layout-l4,
|
| 362 |
+
.layout-l2,
|
| 363 |
+
.layout-l3,
|
| 364 |
+
.article-flow,
|
| 365 |
+
.sidebar-stack,
|
| 366 |
+
.content-stack {
|
| 367 |
+
display: grid;
|
| 368 |
+
gap: 18px;
|
| 369 |
+
}
|
| 370 |
+
|
| 371 |
+
.layout-l1,
|
| 372 |
+
.layout-l4 {
|
| 373 |
+
margin-top: 18px;
|
| 374 |
+
}
|
| 375 |
+
|
| 376 |
+
.layout-l2,
|
| 377 |
+
.layout-l3 {
|
| 378 |
+
margin-top: 18px;
|
| 379 |
+
grid-template-columns: 280px minmax(0, 1fr);
|
| 380 |
+
}
|
| 381 |
+
|
| 382 |
+
.sidebar-hero .brand-mark {
|
| 383 |
+
margin-bottom: 16px;
|
| 384 |
+
}
|
| 385 |
+
|
| 386 |
+
.nav-list,
|
| 387 |
+
.timeline-list,
|
| 388 |
+
.bullet-list,
|
| 389 |
+
.list-reset {
|
| 390 |
+
list-style: none;
|
| 391 |
+
padding: 0;
|
| 392 |
+
margin: 0;
|
| 393 |
+
}
|
| 394 |
+
|
| 395 |
+
.nav-list,
|
| 396 |
+
.timeline-list,
|
| 397 |
+
.bullet-list,
|
| 398 |
+
.list-reset {
|
| 399 |
+
display: grid;
|
| 400 |
+
gap: 12px;
|
| 401 |
+
}
|
| 402 |
+
|
| 403 |
+
.nav-item,
|
| 404 |
+
.list-item {
|
| 405 |
+
display: flex;
|
| 406 |
+
align-items: center;
|
| 407 |
+
gap: 10px;
|
| 408 |
+
padding: 12px 14px;
|
| 409 |
+
border-radius: 16px;
|
| 410 |
+
border: 1px solid var(--panel-border);
|
| 411 |
+
background: color-mix(in srgb, var(--chip-bg) 92%, transparent);
|
| 412 |
+
cursor: pointer;
|
| 413 |
+
transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
|
| 414 |
+
}
|
| 415 |
+
|
| 416 |
+
.nav-item:hover,
|
| 417 |
+
.nav-item:focus-visible {
|
| 418 |
+
transform: translateY(-1px);
|
| 419 |
+
outline: none;
|
| 420 |
+
border-color: color-mix(in srgb, var(--accent) 28%, transparent);
|
| 421 |
+
}
|
| 422 |
+
|
| 423 |
+
.nav-item.active {
|
| 424 |
+
border-color: color-mix(in srgb, var(--accent) 34%, transparent);
|
| 425 |
+
background: color-mix(in srgb, var(--accent-soft) 70%, transparent);
|
| 426 |
+
}
|
| 427 |
+
|
| 428 |
+
.nav-dot,
|
| 429 |
+
.timeline-dot {
|
| 430 |
+
width: 8px;
|
| 431 |
+
height: 8px;
|
| 432 |
+
border-radius: 999px;
|
| 433 |
+
background: var(--accent);
|
| 434 |
+
flex: 0 0 auto;
|
| 435 |
+
}
|
| 436 |
+
|
| 437 |
+
.timeline-item {
|
| 438 |
+
display: grid;
|
| 439 |
+
grid-template-columns: 8px minmax(0, 1fr);
|
| 440 |
+
gap: 12px;
|
| 441 |
+
align-items: start;
|
| 442 |
+
}
|
| 443 |
+
|
| 444 |
+
.bullet-list li {
|
| 445 |
+
position: relative;
|
| 446 |
+
padding-left: 18px;
|
| 447 |
+
color: var(--text-soft);
|
| 448 |
+
}
|
| 449 |
+
|
| 450 |
+
.bullet-list li::before {
|
| 451 |
+
content: "";
|
| 452 |
+
position: absolute;
|
| 453 |
+
top: 0.72em;
|
| 454 |
+
left: 0;
|
| 455 |
+
width: 7px;
|
| 456 |
+
height: 7px;
|
| 457 |
+
border-radius: 999px;
|
| 458 |
+
background: var(--accent);
|
| 459 |
+
}
|
| 460 |
+
|
| 461 |
+
.signal-list {
|
| 462 |
+
display: grid;
|
| 463 |
+
gap: 12px;
|
| 464 |
+
}
|
| 465 |
+
|
| 466 |
+
.signal-row {
|
| 467 |
+
display: flex;
|
| 468 |
+
align-items: center;
|
| 469 |
+
justify-content: space-between;
|
| 470 |
+
gap: 12px;
|
| 471 |
+
padding: 12px 14px;
|
| 472 |
+
border-radius: 16px;
|
| 473 |
+
border: 1px solid var(--panel-border);
|
| 474 |
+
background: color-mix(in srgb, var(--chip-bg) 88%, transparent);
|
| 475 |
+
}
|
| 476 |
+
|
| 477 |
+
.chart-card {
|
| 478 |
+
padding: 16px;
|
| 479 |
+
}
|
| 480 |
+
|
| 481 |
+
.chart-card-head {
|
| 482 |
+
display: flex;
|
| 483 |
+
align-items: center;
|
| 484 |
+
justify-content: space-between;
|
| 485 |
+
gap: 12px;
|
| 486 |
+
margin-bottom: 12px;
|
| 487 |
+
}
|
| 488 |
+
|
| 489 |
+
.head-meta {
|
| 490 |
+
display: flex;
|
| 491 |
+
align-items: center;
|
| 492 |
+
gap: 10px;
|
| 493 |
+
flex-wrap: wrap;
|
| 494 |
+
}
|
| 495 |
+
|
| 496 |
+
.chart-caption {
|
| 497 |
+
color: var(--text-soft);
|
| 498 |
+
font-size: 13px;
|
| 499 |
+
}
|
| 500 |
+
|
| 501 |
+
.chart-shell {
|
| 502 |
+
position: relative;
|
| 503 |
+
border-radius: 18px;
|
| 504 |
+
overflow: hidden;
|
| 505 |
+
border: 1px solid var(--panel-border);
|
| 506 |
+
background: #f8fafc;
|
| 507 |
+
isolation: isolate;
|
| 508 |
+
}
|
| 509 |
+
|
| 510 |
+
.theme-dark .chart-shell {
|
| 511 |
+
background: #020817;
|
| 512 |
+
}
|
| 513 |
+
|
| 514 |
+
.slot-m {
|
| 515 |
+
height: 540px;
|
| 516 |
+
}
|
| 517 |
+
|
| 518 |
+
.slot-l {
|
| 519 |
+
height: 620px;
|
| 520 |
+
}
|
| 521 |
+
|
| 522 |
+
.slot-xl {
|
| 523 |
+
height: 720px;
|
| 524 |
+
}
|
| 525 |
+
|
| 526 |
+
.chart-frame {
|
| 527 |
+
position: absolute;
|
| 528 |
+
inset: 0;
|
| 529 |
+
width: 100%;
|
| 530 |
+
height: 100%;
|
| 531 |
+
border: 0;
|
| 532 |
+
display: block;
|
| 533 |
+
background: #ffffff;
|
| 534 |
+
}
|
| 535 |
+
|
| 536 |
+
.placeholder {
|
| 537 |
+
position: absolute;
|
| 538 |
+
inset: 0;
|
| 539 |
+
z-index: 1;
|
| 540 |
+
display: grid;
|
| 541 |
+
place-items: center;
|
| 542 |
+
text-align: center;
|
| 543 |
+
color: var(--text-soft);
|
| 544 |
+
padding: 24px;
|
| 545 |
+
background: color-mix(in srgb, var(--panel-solid) 12%, transparent);
|
| 546 |
+
pointer-events: none;
|
| 547 |
+
}
|
| 548 |
+
|
| 549 |
+
.placeholder[hidden] {
|
| 550 |
+
display: none !important;
|
| 551 |
+
}
|
| 552 |
+
|
| 553 |
+
.utility-panel {
|
| 554 |
+
margin-top: 12px;
|
| 555 |
+
border-radius: 18px;
|
| 556 |
+
border: 1px solid var(--panel-border);
|
| 557 |
+
background: color-mix(in srgb, var(--chip-bg) 90%, transparent);
|
| 558 |
+
padding: 16px;
|
| 559 |
+
}
|
| 560 |
+
|
| 561 |
+
.utility-panel[hidden] {
|
| 562 |
+
display: none !important;
|
| 563 |
+
}
|
| 564 |
+
|
| 565 |
+
.utility-panel-head {
|
| 566 |
+
display: flex;
|
| 567 |
+
align-items: flex-start;
|
| 568 |
+
justify-content: space-between;
|
| 569 |
+
gap: 14px;
|
| 570 |
+
}
|
| 571 |
+
|
| 572 |
+
.utility-actions {
|
| 573 |
+
display: flex;
|
| 574 |
+
flex-wrap: wrap;
|
| 575 |
+
gap: 10px;
|
| 576 |
+
margin-top: 12px;
|
| 577 |
+
}
|
| 578 |
+
|
| 579 |
+
.utility-close-btn {
|
| 580 |
+
padding-inline: 12px;
|
| 581 |
+
}
|
| 582 |
+
|
| 583 |
+
.toolbar-card,
|
| 584 |
+
.report-header,
|
| 585 |
+
.sidebar-hero {
|
| 586 |
+
background:
|
| 587 |
+
linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 28%, transparent) 0%, transparent 100%),
|
| 588 |
+
var(--panel-bg);
|
| 589 |
+
}
|
| 590 |
+
|
| 591 |
+
.report-meta {
|
| 592 |
+
display: flex;
|
| 593 |
+
align-items: center;
|
| 594 |
+
justify-content: space-between;
|
| 595 |
+
gap: 12px;
|
| 596 |
+
}
|
| 597 |
+
|
| 598 |
+
.report-lead {
|
| 599 |
+
margin: 10px 0 0;
|
| 600 |
+
font-size: 16px;
|
| 601 |
+
}
|
| 602 |
+
|
| 603 |
+
.footer-note {
|
| 604 |
+
margin: 18px 4px 0;
|
| 605 |
+
color: var(--text-soft);
|
| 606 |
+
font-size: 13px;
|
| 607 |
+
}
|
| 608 |
+
|
| 609 |
+
.card-header {
|
| 610 |
+
display: flex;
|
| 611 |
+
align-items: flex-start;
|
| 612 |
+
justify-content: space-between;
|
| 613 |
+
gap: 14px;
|
| 614 |
+
margin-bottom: 16px;
|
| 615 |
+
}
|
| 616 |
+
|
| 617 |
+
.card-caption,
|
| 618 |
+
.inline-note,
|
| 619 |
+
.progress-note,
|
| 620 |
+
.queue-copy span,
|
| 621 |
+
.mini-stat-label,
|
| 622 |
+
.timeline-meta {
|
| 623 |
+
color: var(--text-soft);
|
| 624 |
+
}
|
| 625 |
+
|
| 626 |
+
.timeline-meta {
|
| 627 |
+
margin-top: 4px;
|
| 628 |
+
font-size: 13px;
|
| 629 |
+
line-height: 1.55;
|
| 630 |
+
}
|
| 631 |
+
|
| 632 |
+
.detail-block {
|
| 633 |
+
border: 1px solid var(--panel-border);
|
| 634 |
+
border-radius: 16px;
|
| 635 |
+
background: color-mix(in srgb, var(--chip-bg) 86%, transparent);
|
| 636 |
+
padding: 12px 14px;
|
| 637 |
+
}
|
| 638 |
+
|
| 639 |
+
.detail-block summary {
|
| 640 |
+
cursor: pointer;
|
| 641 |
+
font-size: 13px;
|
| 642 |
+
font-weight: 600;
|
| 643 |
+
list-style: none;
|
| 644 |
+
}
|
| 645 |
+
|
| 646 |
+
.detail-block summary::-webkit-details-marker {
|
| 647 |
+
display: none;
|
| 648 |
+
}
|
| 649 |
+
|
| 650 |
+
.detail-block[open] summary {
|
| 651 |
+
margin-bottom: 10px;
|
| 652 |
+
}
|
| 653 |
+
|
| 654 |
+
.tab-strip,
|
| 655 |
+
.mini-stat-grid {
|
| 656 |
+
display: flex;
|
| 657 |
+
flex-wrap: wrap;
|
| 658 |
+
gap: 10px;
|
| 659 |
+
}
|
| 660 |
+
|
| 661 |
+
.tab-button {
|
| 662 |
+
border: 1px solid var(--panel-border);
|
| 663 |
+
background: color-mix(in srgb, var(--chip-bg) 88%, transparent);
|
| 664 |
+
color: inherit;
|
| 665 |
+
font: inherit;
|
| 666 |
+
padding: 8px 12px;
|
| 667 |
+
border-radius: 999px;
|
| 668 |
+
cursor: pointer;
|
| 669 |
+
transition: transform 0.18s ease, background 0.18s ease;
|
| 670 |
+
}
|
| 671 |
+
|
| 672 |
+
.tab-button:hover {
|
| 673 |
+
transform: translateY(-1px);
|
| 674 |
+
}
|
| 675 |
+
|
| 676 |
+
.tab-button.is-active {
|
| 677 |
+
border-color: color-mix(in srgb, var(--accent) 42%, transparent);
|
| 678 |
+
background: color-mix(in srgb, var(--accent-soft) 78%, transparent);
|
| 679 |
+
}
|
| 680 |
+
|
| 681 |
+
.tab-panel {
|
| 682 |
+
display: none;
|
| 683 |
+
}
|
| 684 |
+
|
| 685 |
+
.tab-panel.is-active {
|
| 686 |
+
display: block;
|
| 687 |
+
}
|
| 688 |
+
|
| 689 |
+
.queue-list,
|
| 690 |
+
.progress-list {
|
| 691 |
+
display: grid;
|
| 692 |
+
gap: 12px;
|
| 693 |
+
}
|
| 694 |
+
|
| 695 |
+
.queue-row {
|
| 696 |
+
display: flex;
|
| 697 |
+
align-items: flex-start;
|
| 698 |
+
justify-content: space-between;
|
| 699 |
+
gap: 14px;
|
| 700 |
+
padding: 14px 15px;
|
| 701 |
+
border-radius: 16px;
|
| 702 |
+
border: 1px solid var(--panel-border);
|
| 703 |
+
background: color-mix(in srgb, var(--chip-bg) 92%, transparent);
|
| 704 |
+
transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
|
| 705 |
+
}
|
| 706 |
+
|
| 707 |
+
.queue-row.is-acknowledged,
|
| 708 |
+
.queue-row.is-complete {
|
| 709 |
+
border-color: color-mix(in srgb, var(--accent) 38%, transparent);
|
| 710 |
+
background: color-mix(in srgb, var(--accent-soft) 42%, transparent);
|
| 711 |
+
}
|
| 712 |
+
|
| 713 |
+
.queue-row.is-complete .queue-copy strong {
|
| 714 |
+
text-decoration: line-through;
|
| 715 |
+
text-decoration-thickness: 1.5px;
|
| 716 |
+
}
|
| 717 |
+
|
| 718 |
+
.queue-row.is-acknowledged .queue-copy,
|
| 719 |
+
.queue-row.is-complete .queue-copy {
|
| 720 |
+
opacity: 0.82;
|
| 721 |
+
}
|
| 722 |
+
|
| 723 |
+
.queue-copy {
|
| 724 |
+
display: grid;
|
| 725 |
+
gap: 6px;
|
| 726 |
+
}
|
| 727 |
+
|
| 728 |
+
.queue-copy strong {
|
| 729 |
+
font-size: 14px;
|
| 730 |
+
}
|
| 731 |
+
|
| 732 |
+
.queue-copy span,
|
| 733 |
+
.progress-note {
|
| 734 |
+
font-size: 13px;
|
| 735 |
+
line-height: 1.6;
|
| 736 |
+
}
|
| 737 |
+
|
| 738 |
+
.queue-status {
|
| 739 |
+
flex: 0 0 auto;
|
| 740 |
+
padding: 7px 10px;
|
| 741 |
+
border-radius: 999px;
|
| 742 |
+
border: 1px solid var(--panel-border);
|
| 743 |
+
background: var(--chip-bg);
|
| 744 |
+
font-size: 12px;
|
| 745 |
+
}
|
| 746 |
+
|
| 747 |
+
.queue-status.level-high {
|
| 748 |
+
color: #ef4444;
|
| 749 |
+
}
|
| 750 |
+
|
| 751 |
+
.queue-status.level-medium {
|
| 752 |
+
color: #f59e0b;
|
| 753 |
+
}
|
| 754 |
+
|
| 755 |
+
.queue-status.level-low {
|
| 756 |
+
color: var(--accent);
|
| 757 |
+
}
|
| 758 |
+
|
| 759 |
+
.queue-actions {
|
| 760 |
+
align-items: center;
|
| 761 |
+
justify-content: flex-end;
|
| 762 |
+
flex: 0 0 auto;
|
| 763 |
+
}
|
| 764 |
+
|
| 765 |
+
.mini-stat-card {
|
| 766 |
+
min-width: 132px;
|
| 767 |
+
padding: 12px 14px;
|
| 768 |
+
border-radius: 16px;
|
| 769 |
+
border: 1px solid var(--panel-border);
|
| 770 |
+
background: color-mix(in srgb, var(--chip-bg) 88%, transparent);
|
| 771 |
+
display: grid;
|
| 772 |
+
gap: 8px;
|
| 773 |
+
}
|
| 774 |
+
|
| 775 |
+
.mini-stat-value {
|
| 776 |
+
font-size: 18px;
|
| 777 |
+
}
|
| 778 |
+
|
| 779 |
+
.progress-row {
|
| 780 |
+
display: grid;
|
| 781 |
+
gap: 8px;
|
| 782 |
+
}
|
| 783 |
+
|
| 784 |
+
.progress-meta {
|
| 785 |
+
display: flex;
|
| 786 |
+
align-items: center;
|
| 787 |
+
justify-content: space-between;
|
| 788 |
+
gap: 12px;
|
| 789 |
+
font-size: 13px;
|
| 790 |
+
}
|
| 791 |
+
|
| 792 |
+
.progress-track {
|
| 793 |
+
height: 10px;
|
| 794 |
+
border-radius: 999px;
|
| 795 |
+
overflow: hidden;
|
| 796 |
+
background: color-mix(in srgb, var(--chip-bg) 90%, transparent);
|
| 797 |
+
border: 1px solid var(--panel-border);
|
| 798 |
+
}
|
| 799 |
+
|
| 800 |
+
.progress-bar {
|
| 801 |
+
height: 100%;
|
| 802 |
+
border-radius: inherit;
|
| 803 |
+
background: linear-gradient(90deg, var(--accent) 0%, var(--accent-alt) 100%);
|
| 804 |
+
}
|
| 805 |
+
|
| 806 |
+
.tab-card,
|
| 807 |
+
.support-card,
|
| 808 |
+
.content-card,
|
| 809 |
+
.article-card,
|
| 810 |
+
.sidebar-card {
|
| 811 |
+
display: grid;
|
| 812 |
+
gap: 16px;
|
| 813 |
+
}
|
| 814 |
+
|
| 815 |
+
@media (max-width: 1280px) {
|
| 816 |
+
.summary-grid,
|
| 817 |
+
.support-grid,
|
| 818 |
+
.two-column {
|
| 819 |
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
| 820 |
+
}
|
| 821 |
+
|
| 822 |
+
.layout-l2,
|
| 823 |
+
.layout-l3,
|
| 824 |
+
.hero-banner {
|
| 825 |
+
grid-template-columns: minmax(0, 1fr);
|
| 826 |
+
}
|
| 827 |
+
}
|
| 828 |
+
|
| 829 |
+
@media (max-width: 900px) {
|
| 830 |
+
.page-shell,
|
| 831 |
+
.page-shell-article {
|
| 832 |
+
width: min(var(--content-max), calc(100vw - 24px));
|
| 833 |
+
}
|
| 834 |
+
|
| 835 |
+
.summary-grid,
|
| 836 |
+
.support-grid,
|
| 837 |
+
.two-column {
|
| 838 |
+
grid-template-columns: minmax(0, 1fr);
|
| 839 |
+
}
|
| 840 |
+
|
| 841 |
+
.topbar {
|
| 842 |
+
align-items: flex-start;
|
| 843 |
+
flex-direction: column;
|
| 844 |
+
}
|
| 845 |
+
|
| 846 |
+
.brand-group {
|
| 847 |
+
align-items: flex-start;
|
| 848 |
+
}
|
| 849 |
+
}
|
web_insert/_shared/embedded_template.js
ADDED
|
@@ -0,0 +1,199 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
(function () {
|
| 2 |
+
function setText(selector, value) {
|
| 3 |
+
if (!value) {
|
| 4 |
+
return;
|
| 5 |
+
}
|
| 6 |
+
document.querySelectorAll(selector).forEach(function (node) {
|
| 7 |
+
node.textContent = value;
|
| 8 |
+
});
|
| 9 |
+
}
|
| 10 |
+
|
| 11 |
+
function setStatus(kind, text) {
|
| 12 |
+
var badge = document.querySelector("[data-load-badge]");
|
| 13 |
+
if (!badge) {
|
| 14 |
+
return;
|
| 15 |
+
}
|
| 16 |
+
badge.classList.remove("loading", "loaded", "error");
|
| 17 |
+
badge.classList.add(kind);
|
| 18 |
+
badge.textContent = text;
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
function initFullscreen(shell, button) {
|
| 22 |
+
if (!shell || !button) {
|
| 23 |
+
return;
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
function updateLabel() {
|
| 27 |
+
var active = document.fullscreenElement === shell;
|
| 28 |
+
button.textContent = active ? "Close expanded view" : "Expand view";
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
button.addEventListener("click", async function () {
|
| 32 |
+
try {
|
| 33 |
+
if (document.fullscreenElement === shell) {
|
| 34 |
+
await document.exitFullscreen();
|
| 35 |
+
} else {
|
| 36 |
+
await shell.requestFullscreen();
|
| 37 |
+
}
|
| 38 |
+
} catch (error) {
|
| 39 |
+
setStatus("error", "Expanded view failed");
|
| 40 |
+
}
|
| 41 |
+
});
|
| 42 |
+
|
| 43 |
+
document.addEventListener("fullscreenchange", updateLabel);
|
| 44 |
+
updateLabel();
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
function initToggleChips() {
|
| 48 |
+
document.querySelectorAll("[data-filter-group]").forEach(function (group) {
|
| 49 |
+
group.querySelectorAll("[data-toggle-chip]").forEach(function (button) {
|
| 50 |
+
button.addEventListener("click", function () {
|
| 51 |
+
group.querySelectorAll("[data-toggle-chip]").forEach(function (item) {
|
| 52 |
+
item.classList.remove("is-active");
|
| 53 |
+
});
|
| 54 |
+
button.classList.add("is-active");
|
| 55 |
+
});
|
| 56 |
+
});
|
| 57 |
+
});
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
function initTabs() {
|
| 61 |
+
document.querySelectorAll("[data-tab-scope]").forEach(function (scope) {
|
| 62 |
+
var buttons = scope.querySelectorAll("[data-tab-target]");
|
| 63 |
+
var panels = scope.querySelectorAll("[data-tab-panel]");
|
| 64 |
+
buttons.forEach(function (button) {
|
| 65 |
+
button.addEventListener("click", function () {
|
| 66 |
+
var target = button.getAttribute("data-tab-target");
|
| 67 |
+
buttons.forEach(function (item) {
|
| 68 |
+
item.classList.toggle("is-active", item === button);
|
| 69 |
+
});
|
| 70 |
+
panels.forEach(function (panel) {
|
| 71 |
+
panel.classList.toggle("is-active", panel.getAttribute("data-tab-panel") === target);
|
| 72 |
+
});
|
| 73 |
+
});
|
| 74 |
+
});
|
| 75 |
+
});
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
function initNavItems() {
|
| 79 |
+
document.querySelectorAll(".nav-list").forEach(function (list) {
|
| 80 |
+
var items = list.querySelectorAll("[data-nav-item]");
|
| 81 |
+
function activate(target) {
|
| 82 |
+
items.forEach(function (item) {
|
| 83 |
+
item.classList.toggle("active", item === target);
|
| 84 |
+
});
|
| 85 |
+
}
|
| 86 |
+
items.forEach(function (item) {
|
| 87 |
+
item.addEventListener("click", function () {
|
| 88 |
+
activate(item);
|
| 89 |
+
});
|
| 90 |
+
item.addEventListener("keydown", function (event) {
|
| 91 |
+
if (event.key === "Enter" || event.key === " ") {
|
| 92 |
+
event.preventDefault();
|
| 93 |
+
activate(item);
|
| 94 |
+
}
|
| 95 |
+
});
|
| 96 |
+
});
|
| 97 |
+
});
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
+
function initRowActions() {
|
| 101 |
+
document.querySelectorAll("[data-row-action]").forEach(function (button) {
|
| 102 |
+
var primary = button.getAttribute("data-primary-label") || button.textContent.trim() || "Open";
|
| 103 |
+
var secondary = button.getAttribute("data-secondary-label") || "Undo";
|
| 104 |
+
button.textContent = primary;
|
| 105 |
+
button.addEventListener("click", function () {
|
| 106 |
+
var row = button.closest(".queue-row");
|
| 107 |
+
if (!row) {
|
| 108 |
+
return;
|
| 109 |
+
}
|
| 110 |
+
var mode = button.getAttribute("data-row-action");
|
| 111 |
+
if (mode === "complete") {
|
| 112 |
+
var complete = !row.classList.contains("is-complete");
|
| 113 |
+
row.classList.toggle("is-complete", complete);
|
| 114 |
+
var status = row.querySelector("[data-status-label]");
|
| 115 |
+
if (status) {
|
| 116 |
+
if (!status.dataset.originalStatus) {
|
| 117 |
+
status.dataset.originalStatus = status.textContent;
|
| 118 |
+
}
|
| 119 |
+
status.textContent = complete ? "Completed" : status.dataset.originalStatus;
|
| 120 |
+
}
|
| 121 |
+
button.textContent = complete ? secondary : primary;
|
| 122 |
+
return;
|
| 123 |
+
}
|
| 124 |
+
var acknowledged = !row.classList.contains("is-acknowledged");
|
| 125 |
+
row.classList.toggle("is-acknowledged", acknowledged);
|
| 126 |
+
button.textContent = acknowledged ? secondary : primary;
|
| 127 |
+
});
|
| 128 |
+
});
|
| 129 |
+
}
|
| 130 |
+
|
| 131 |
+
function initUtilityPanels() {
|
| 132 |
+
var panels = document.querySelectorAll("[data-utility-panel]");
|
| 133 |
+
document.querySelectorAll("[data-panel-toggle]").forEach(function (button) {
|
| 134 |
+
button.addEventListener("click", function () {
|
| 135 |
+
panels.forEach(function (panel) {
|
| 136 |
+
panel.hidden = !panel.hidden;
|
| 137 |
+
});
|
| 138 |
+
});
|
| 139 |
+
});
|
| 140 |
+
document.querySelectorAll("[data-panel-close]").forEach(function (button) {
|
| 141 |
+
button.addEventListener("click", function () {
|
| 142 |
+
var panel = button.closest("[data-utility-panel]");
|
| 143 |
+
if (panel) {
|
| 144 |
+
panel.hidden = true;
|
| 145 |
+
}
|
| 146 |
+
});
|
| 147 |
+
});
|
| 148 |
+
}
|
| 149 |
+
|
| 150 |
+
function initChart() {
|
| 151 |
+
var params = new URLSearchParams(window.location.search);
|
| 152 |
+
var body = document.body;
|
| 153 |
+
var chartSrc = params.get("chart_src") || (body ? body.dataset.defaultChartSrc : "") || "";
|
| 154 |
+
var caseName = params.get("case_name") || "";
|
| 155 |
+
var caseNote = params.get("case_note") || "";
|
| 156 |
+
var iframe = document.querySelector("[data-chart-frame]");
|
| 157 |
+
var placeholder = document.querySelector("[data-placeholder]");
|
| 158 |
+
var shell = document.querySelector("[data-chart-shell]");
|
| 159 |
+
var button = document.querySelector("[data-fullscreen-btn]");
|
| 160 |
+
|
| 161 |
+
if (caseName) {
|
| 162 |
+
setText("[data-case-name]", caseName);
|
| 163 |
+
}
|
| 164 |
+
if (caseNote) {
|
| 165 |
+
setText("[data-case-note]", caseNote);
|
| 166 |
+
}
|
| 167 |
+
initFullscreen(shell, button);
|
| 168 |
+
initToggleChips();
|
| 169 |
+
initTabs();
|
| 170 |
+
initNavItems();
|
| 171 |
+
initRowActions();
|
| 172 |
+
initUtilityPanels();
|
| 173 |
+
|
| 174 |
+
if (!iframe || !chartSrc || /^(https?:)?\/\//i.test(chartSrc)) {
|
| 175 |
+
setStatus("error", "View source unavailable");
|
| 176 |
+
return;
|
| 177 |
+
}
|
| 178 |
+
|
| 179 |
+
iframe.addEventListener("load", function () {
|
| 180 |
+
setStatus("loaded", "View ready");
|
| 181 |
+
if (placeholder) {
|
| 182 |
+
placeholder.hidden = true;
|
| 183 |
+
}
|
| 184 |
+
});
|
| 185 |
+
|
| 186 |
+
iframe.addEventListener("error", function () {
|
| 187 |
+
setStatus("error", "View failed to load");
|
| 188 |
+
});
|
| 189 |
+
|
| 190 |
+
setStatus("loading", "Loading view");
|
| 191 |
+
iframe.src = chartSrc;
|
| 192 |
+
}
|
| 193 |
+
|
| 194 |
+
if (document.readyState === "loading") {
|
| 195 |
+
document.addEventListener("DOMContentLoaded", initChart);
|
| 196 |
+
} else {
|
| 197 |
+
initChart();
|
| 198 |
+
}
|
| 199 |
+
})();
|