Skip to content

Commit 2bd951f

Browse files
committed
add scale to yAxis
1 parent 4da954a commit 2bd951f

File tree

3 files changed

+55
-1
lines changed

3 files changed

+55
-1
lines changed

.github/workflows/page.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Pages
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: read
8+
pages: write
9+
id-token: write
10+
11+
concurrency:
12+
group: "page"
13+
cancel-in-progress: true
14+
15+
env:
16+
TURSO_DB_URL: "libsql://zig-jiacai2050.turso.io"
17+
TURSO_TOKEN: "${{ secrets.TURSO_TOKEN }}"
18+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
19+
20+
jobs:
21+
build:
22+
timeout-minutes: 10
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v4
26+
- name: Cache Crates
27+
uses: actions/cache@v3
28+
with:
29+
path: |
30+
~/.cargo
31+
key: ${{ runner.os }}
32+
- run: |
33+
# https://github.com/wilsonzlin/minify-html
34+
cargo install minhtml
35+
npm i
36+
- run: |
37+
npm run gen-html
38+
minhtml --output web/index.html --keep-closing-tags --minify-css web/raw.html
39+
- name: Upload artifact
40+
uses: actions/upload-pages-artifact@v2
41+
with:
42+
path: web
43+
44+
deploy:
45+
environment:
46+
name: github-pages
47+
url: ${{ steps.deployment.outputs.page_url }}
48+
runs-on: ubuntu-latest
49+
needs: build
50+
steps:
51+
- name: Deploy to GitHub Pages
52+
id: deployment
53+
uses: actions/deploy-pages@v3

app.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ limit 1000
204204

205205
const idsToShow = [
206206
'25', // 0.13.0
207-
'23', // 0.12.0
207+
// '23', // 0.12.0
208208
// '20', // '0.14.0',
209209
// '19', // '0.15.0',
210210
];

web/app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const commonChartOpts = {
2323
boundaryGap: false,
2424
},
2525
yAxis: {
26+
scale: true,
2627
type: 'value'
2728
},
2829
dataZoom: [{

0 commit comments

Comments
 (0)