Experiencing difficulty setting custom maximum value for y-axis on brush chart with ApexCharts

I'm facing an issue with a brushed chart containing two datasets with significantly different values. While I've managed to successfully change the maximum value of the y-axis for both datasets in the brush chart line, the same does not apply to the main chart. As of now, the y-axis on the left corresponding to the price graph does not have a maximum value of 1 as expected from my code. However, it does work on the brush chart line.

I'm struggling to find a solution to this problem.

Take a look at an example of the issue in the snippet below.

const pricedata = [{
    "x": 1697842800000,
    "y": 0.834
  },
  {
    "x": 1697929200000,
    "y": 0.835
  }, 
... (the rest of the JSON data continues)
body {
            margin: 0;
            padding: 0;
            font-family: Arial, sans-serif;
            background-color: #1c1c1c;
        }
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8>;
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
    <script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>
    <title>Document</title>
</head>
<body>
    <div id="chart"></div>
    <div id="chartline"></div>
</body>
</html>

Answer №1

It appears that there is a persistent problem with ApexCharts, and despite a pull request being submitted to address it, the issue remains unresolved. The pull request was submitted more than a year ago and has not been incorporated yet. Unfortunately, there does not seem to be any known workaround for this issue currently.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

How can I alter an object within an array of a document using a query in Mongoose?

I am working with a data structure: { field: 1, field: 3, field: [ { _id: xxx , subfield: 1 }, { _id: xxx , subfield: 1 }, ] } My task is to update a specific element within the array. Currently, my method involves removing the old obj ...

Angular: Leveraging Nested Callbacks for Efficient HTTP Queries

I'm currently facing an issue with structured English. GET HTTP Resource FOR every data item received do GET another HTTP Resource Alter the original data from the outer loop with data from the inner GET RETURN altered data How can ...

What is the secret behind Redactor JS's ability to display properly indented code snippets?

If you take a look at the Redactor JS demo and click on the button to show the HTML source code of the displayed content... ...you will notice that the code is properly indented: Most rich text editors or wysiwyg editors typically display code in a singl ...

Unable to update angular $scope using ng-click

I am attempting to modify a directive controller's $scope using ng-click. There is a simple button in my code: <button ng-click="showEnterKeyField = !showEnterKeyField">btn {{showEnterKeyField}}</button> This code functions as expected, ...

What is the process for initializing the JWPlayer when it is embedded within Sitefinity?

We utilize a Sitefinity portal and have integrated the jwplayer on a specific page. Upon inspecting the page's HTML code, I only see a DIV element with an ID assigned to the video player. There is no indication of the javascript code present. However, ...

Using three.js in Rails the right way

I've looked everywhere for a solution to this problem, but unfortunately haven't found anything helpful. Currently, I'm in the process of creating a new Ruby on Rails application and I want to start practicing using three.js. To check if it ...

Return to a mention of a tree reference

Here is an example code snippet: <table> <tr> <td></td> <td></td> <td> <table> <tr> <td><a href="#" class="fav">click me</a></td> ...

The plumber encountered an issue and triggered a custom error function, resulting in an error in the 'plumber' plugin: Error message: Unable to connect to undefined

Currently, I am developing a Wordpress theme starter application using node, gulp, and handlebars to generate templates. I am running into an issue with the integration of plumber, notify, and gulp-sass plugins. If you are interested in checking out my w ...

Design a dropdown menu with options that correspond to the specific data attribute, showing both values and text

I have a snippet below where I am trying to create a select dropdown option based on the data attributes (data-select-text and data-select-values) of the button that is currently clicked. The snippet works for the most part, except I am struggling with ext ...

How come my HTML form keeps refreshing instead of displaying an alert after submission, even though I've included onsubmit="return false"? Additionally, it seems to be throwing an error

Why is this basic HTML and JavaScript code not functioning properly? Instead of alerting once the form is submitted, it refreshes the page and throws an error. It has also been reported to sometimes throw a CORS error when using 'module' as scri ...

How do I access the variable value from inside a function in jQuery?

Is it possible to extract the value from 'a = entry.username' outside of the function? I need to retrieve a value that is already being looped inside the function. $('#btnlogin').click(function(){ var usernamelogin = $(&apos ...

Unable to display 3D model using three.js THREE.FBXLoader

Having trouble integrating a THREE.FBXLoader 3D model into my three js project, getting an error message THREE.FBXLoader: External library Inflate.min.js required, obtain or import from https://github.com/imaya/zlib.js Check out the screenshot for more in ...

AngularJS $resource sends the id as a query parameter rather than including it in the URL

I'm trying to retrieve data from a rest API by using the product id as part of the URL, rather than as a query parameter. Here is the factory code: .factory('Products', ['$resource', function($resource) { return $reso ...

Issues with displaying ngAnimate animations

For the past 10 hours, I've been attempting to get my animations to function properly. It seems that they only work when I include the animate.css stylesheet and use the "animated classname". However, when I try to create custom entrance and exit anim ...

Connection between mapStateToProps and mapActionsToProps failing to trigger in react component

I am facing an issue with my component (SearchFilter.js) where the connect method is not triggering mapStateToProps and mapActionsToProps on export. The problem is that mapStateToProps is not firing at all -- no props (neither state nor actions) are showi ...

issue with sending http requests using ionic2/3

I'm still relatively new to using ionic2, even though I have some experience with programming in general. Currently, I'm experimenting with ionic2 and attempting to send simple get/post requests to my locally hosted web services for development p ...

What is the process for transferring a JavaScript variable to a Java servlet?

I am trying to send a JavaScript variable to a Java servlet in a web application I am developing. Below is the HTML code: <p id="test">Some text</p> Here is the JavaScript code I am using: var myVar = document.getElementById('test' ...

Inject the type into the dependency container

I am managing multiple databases without relying on ORM tools. Here, I will demonstrate an example using Postgres and MSSQL databases with UserQueries. https://i.sstatic.net/GFs5D.png Within my codebase, I have an interface called IDataBase which is impl ...

Can dynamic import be beneficial in a node.js environment?

As a newcomer to the world of node.js/express, I must say that I am thoroughly enjoying my experience with it so far. I have adopted ES6 syntax for imports in my project. Initially, when setting up my project, I defined all my routes as follows : app.get ...

Node.js returns a 404 Not Found error when trying to access localhost

After creating a basic login system using Node.js and Express 4.x, I encountered an issue where accessing localhost:3000 resulted in a "Not Found 404" error. Upon investigation, I realized that the problem stemmed from discrepancies between code written fo ...