Giter Site home page Giter Site logo

Comments (3)

junedchhipa avatar junedchhipa commented on May 1, 2024 2

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"

screen shot 2018-08-17 at 6 45 22 pm

and here is the chart image with height set to 300 for mobile devices

screen shot 2018-08-17 at 6 45 42 pm

using this config

{
  chart: {
    type: 'line',
    height: 'auto',
  },
  responsive: [{
    breakpoint: 480,
    options: {
      chart: {
        height: 300
      }
    }
  }],
}

from apexcharts.js.

junedchhipa avatar junedchhipa commented on May 1, 2024 1

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.

arkhenstone avatar arkhenstone commented on May 1, 2024

Even with that config, the legend overflow. Set more height, and the legend still overflow.

With height="300" :

screenshot_20180817-164242

With height="400" :

400

from apexcharts.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.