How can I combine all the areas in an ExtJS Area Chart with varying opacity levels instead of stacking them on top of each other?

I'm currently working on an area chart in ExtJS 4.1 and so far, everything is being displayed correctly.

My issue is that one area is overlapping another in the chart, which I would like to avoid. Is there a way to overlay all the areas instead? Perhaps adjusting the opacity so that they are all visible at once?

Most of the examples I have found only show stacked behavior for area charts. Is this the default setting or is there a simple configuration option that I am overlooking?

In the Area Charts Example, the colored areas appear sequentially one after the other. My goal is to have them all on the same plane simultaneously.

Please share any suggestions or insights you may have on this matter.

Answer №1

Try using a Line chart with the fill option instead - it has been effective for me in similar situations.

Answer №2

To achieve this, you can create multiple series instead of a single area series with an array of data points on the y-axis. This solution was discovered while browsing through discussions on Sencha forums.

series: [
  {
    type: 'area',
    highlight: false,
    axis: 'left',
    xField: 'name',
    yField: ['data1'],
    style: {
        opacity: 0.50
    }
},
  {
    type: 'area',
    highlight: false,
    axis: 'left',
    xField: 'name',
    yField: ['data2'],
    style: {
        opacity: 0.70
    }
}

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

Inadequate completion of Object.create() method

Here's the code snippet: //Note: x is being pulled from an external source and contains certain values var x = [{ name: 'Michael Lovesllamas Lankford', created: 1338420951.11, laptop: 'pc', laptop_version: null, userid: &apos ...

Obtaining dynamic text from an animated gif image using Java for Selenium automation

https://i.sstatic.net/hLXva.gif I am looking to extract all the text from this gif image and then confirm the accuracy of certain text. ...

Selecting a specific section from a JSON data reception

Upon executing a POST request to , the resulting response typically looks like this: { "success": true, "data": { "url": "http://i.imgflip.com/1nciey.jpg", "page_url": "https://imgflip.com/i/1nciey" } } Is there a way for me to output the s ...

What is the best way to arrange the elements of a dropdown list in reverse order?

I have the following code snippet used to retrieve data from a database and display it in a dropdown list: @{ int m = 1; foreach (var item in Model.MessagesList) { if (@item.receiverUserId == userId) { <li> <a class=&qu ...

Navigating to a specific div within a component in Vuejs 2: Steps for routing

These are the routes I've set up for my application: const router = new VueRouter({ mode:'history', routes:[ { path:'/home', name:'home', component: Home }, { path: '/serv ...

I am looking to adjust the width of an element within an Iframe

In my single post, I have a social sidebar on the left side. Currently, the buttons in the sidebar are appearing in different sizes, but I want them all to be the same size as the "Twitter" button. To see the issue, please visit this link. I've tried ...

What is the best method to combine two BufferGeometries into a single BufferGeometry using Three.JS?

Wondering how to combine two buffer geometries into a single THREE.BufferGeometry in ThreeJS? var mergedGeometry = null; geometry = new THREE.CylinderGeometry(10, 10, 10); if (mergedGeometry === null) { mergedGeometry = new THREE.BufferGeometry().fr ...

Retrieving Records within a Specific Date Range for Check-ins and Check-outs

Our team is currently working on developing booking software that requires handling different room pricing based on specific dates. Each room has distinct pricing for weekdays and weekends. ROOM 1 Pricing 1: September 1st - November 3rd, Weekday: $100, W ...

Using AngularJS to Send Arrays of Objects to PHP

Currently, I am adapting to using AngularJS ng-resource, however, I am encountering an issue with serializing an array. The ng-resource implementation that I am working with is structured as follows: app.factory('MyModel', ['$resource' ...

Retrieve the child scope of ng-repeat beyond the ng-repeat iteration and establish a two-way data binding

With my ng-repeat, I am attempting to include ng-model inside each repeated li, followed by two-way data binding outside of the ng-repeat. You can see the example in this jsbin: http://jsbin.com/yutinifivi/edit?html,js,output I have searched extensively f ...

Ways to retrieve information when text is modified and a dropdown is selected within an input field

I have an input field with a text box and a dropdown. My goal is to trigger data based on text changes in one method, while using another method for the dropdown. Check out the code below. const allList = [ { id: "1", value: "Fruits" ...

Removing elements in AngularJS using ngRepeat

Many have questioned how to implement item removal within the ngRepeat directive. Through my research, I discovered that it involves using ngClick to trigger a removal function with the item's $index. However, I haven't been able to find an exam ...

Steps for executing a function once an AJAX call is completed inside an iframe

I am facing a challenge with extracting a variable value called useableData from an iframe back to the parent page. The page and iframe are both on the same domain. Inside the iframe, there is an AJAX call that populates some input fields with data, and I ...

Execute the identical script in NPM, but with various parameters each time

Recently, I created a nodeJS script with a parameter. Currently, using npm start allows me to pass arguments and run my script successfully. However, I'm now faced with the challenge of passing multiple arguments to npm start in order to run multipl ...

Error Alert: Attempting to access the 'prototype' property of an undefined value has resulted in a TypeError after switching to react-scripts version 4.0.3

I encountered a problem where I received the following error message: (Uncaught Error: Module build failed (from ./node_modules/source-map-loader/dist/cjs.js)). After attempting to resolve it by using npm install, a new error popped up in the console: path ...

Receive real-time price updates from Next.js using GetServerSideProps data

I'm currently working on fetching live bitcoin prices from CoinGecko. In my index.js file, I have an async GetServerSideProps function that is functioning correctly. The returned props are then passed down to the <Home /> component, and subseque ...

Efficiently bundling Angular templates using Grunt and Browserify

I am currently utilizing angular1 in conjunction with browserify and grunt to construct my application. At present, browserify only bundles the controllers and retrieves the templates using ng-include through a separate ajax call. Due to the excessive amo ...

Stopping Cross-Origin Resource Sharing (CORS) - Executing Ajax GET Requests on Ngin

I have set up Nginx as my web server and configured it as shown below: server { listen 3000; server_name .*; location / { proxy_pass http://127.0.0.1:3001; if ($request_method = 'OPTIONS') { add_h ...

Issue encountered during Node.js installation

Every time I attempt to install node js, I encounter the following errors: C:\Users\Administrator>cd C:/xampp/htdocs/chat C:\xampp\htdocs\chat>npm install npm WARN package.json <a href="/cdn-cgi/l/email-protection" class ...

How can I retrieve the attributes of multiple identical components within a webpage?

I've recently delved into learning Vue and decided to create a small application for adding fractions together. I have developed two main components: Fraction.vue and App.vue. The App.vue component contains multiple instances of the Fraction component ...