Comments (3)
If you don't provide any height, then the default height = width / 1.6
But, you can give height along with width also. If you don't want to give fixed height for large screens, you can configure the responsive options to give height just for mobile screens.
Here is the chart image with height set to "auto"
and here is the chart image with height set to 300 for mobile devices
using this config
{
chart: {
type: 'line',
height: 'auto',
},
responsive: [{
breakpoint: 480,
options: {
chart: {
height: 300
}
}
}],
}
from apexcharts.js.
I will look into the legends getting cropped.
For a temporary solution, you can offset the whole legend area by
{
legend: {
offsetY: -5
}
}
from apexcharts.js.
Even with that config, the legend overflow. Set more height, and the legend still overflow.
With height="300" :
With height="400" :
from apexcharts.js.
Related Issues (20)
- dropShadow in a multi-series chart applies dropShadow to other series after hovering
- Website/React: Link line-chart-with-annotations leads to a 404
- Add border radius option for Treemap
- Total data labels in stacked grouped bars should be per group
- ERROR ReferenceError: window is not defined, Seems it is not yet supported with angular SSR. HOT 1
- timeseries bar chart with multiple series appears shifted and cutoff HOT 1
- Border radius is not applied when the last series contains a 0 value HOT 1
- Treemap with sparkline does not work HOT 2
- Apexcharts <svg> attribute height: Expected length, "NaN" when loading different page in single page app
- Sync bar and line charts togherter
- YAxis labels not shown when formatted starts with 0 HOT 3
- dataPointSelection > Can't seem to access x-axis or y-axis categories
- Performance issue
- Tooltip appears empty with negative values after formatting with a comma
- Smooth glitch in the time series line chart HOT 1
- Scrollable charts for large data set
- PDF Download Options
- Data Labels are missaligned and the last x grid line is not wisible HOT 2
- Apexcharts legend markers not showing HOT 1
- Option to place y-axis labels inside the graph
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apexcharts.js.