-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(HillChart): add gradient color capability #121
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,12 @@ | |
"title": "基础形态", | ||
"children": [ | ||
{ | ||
"name": "山峰图", | ||
"name": "山峰图-渐变色", | ||
"routePath": "HillChart-9", | ||
"imagePath": "./image/theme/light/HillChart/HillChart-9.png" | ||
}, | ||
Comment on lines
+8
to
+11
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Update image path to use correct theme directory Please update the image path to use "hdesign-light" instead of "light": "imagePath": "./image/theme/hdesign-light/HillChart/HillChart-9.png" 🔗 Analysis chainVerify the new gradient configuration resources. The gradient color variant looks good, but please ensure:
🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Check if the image and configuration files exist
echo "Checking for image file..."
fd -t f "HillChart-9.png" public/
echo "Checking for configuration file..."
fd -t f "HillChart-9.js" public/
Length of output: 364 |
||
{ | ||
"name": "山峰图-纯色", | ||
"routePath": "HillChart-1", | ||
"imagePath": "./image/theme/light/HillChart/HillChart-1.png" | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
const option = { | ||
theme: 'hdesign-light', | ||
color: ['#2070F380', '#62B42E80', '#715AFB80', '#2CB8C980'], | ||
chartPadding: [50, 150, 50, 150], | ||
data: [ | ||
{ name: 'BRAS 01', value: 86 }, | ||
{ name: 'BRAS 02', value: 60 }, | ||
{ name: 'BRAS 03', value: 40 }, | ||
{ name: 'BRAS 04', value: 31 } | ||
], | ||
text: { | ||
fontSize: '12', | ||
show: true | ||
}, | ||
coincide: '-100%', | ||
yAxisName: 'Units', | ||
gradientColor: ['#2070F3', '#62B42E', '#715AFB', '#2CB8C9'] | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
Update image path to match the actual file structure
The image exists but the path in the configuration needs to be updated:
"./image/theme/light/HillChart/HillChart-9.png"
to"./image/theme/hdesign-light/HillChart/HillChart-9.png"
🔗 Analysis chain
Verify image path exists for the new gradient variant.
The configuration looks correct, but ensure that the referenced image file exists at the specified path:
./image/theme/light/HillChart/HillChart-9.png
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 150