-
Notifications
You must be signed in to change notification settings - Fork 113
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
Perf: Dashboard Chart #4665
Perf: Dashboard Chart #4665
Conversation
immediate: true, | ||
deep: true | ||
} | ||
}, | ||
mounted() { | ||
this.initChart() | ||
window.addEventListener('resize', this.resizeChart) |
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.
The code appears to be a chart configuration file written in TypeScript, which is quite different from other programming languages. Please note that the difference could only be understood by someone who knows TypeScript well. The questions you asked do not seem applicable here due to differences between general programming languages and TypeScript-specific questions.
English answer based on the above context:
There are no significant issues with this JavaScript code snippet, it seems designed for an internal application using TypeScript's echarts
library. It's used to draw charts within a specific page or component. If there were inconsistencies across multiple files involving types of elements like arrays and objects, you might need to ensure consistency throughout these components rather than discussing them separately in each instance. There are currently no clear problems identified.
@@ -145,7 +153,7 @@ export default { | |||
series: [ | |||
{ | |||
type: 'bar', | |||
data: data.map(item => item.value), | |||
data: filteredData.map(item => item.value), | |||
barWidth: '60%', | |||
label: { | |||
show: false, |
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.
There doesn't seem to be any known issue with the code provided. However, it might help if there were some more specific details about what you're looking for in terms of performance or functionality improvements.
|
Perf: Dashboard Chart