Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

180
Views
Bind different series in apex chart using vue.js for

I'm trying to creare N different bar chart using a for in Vue.js, but obviously in this way I'm creating N chart with the same data series. I want to create this N chart binding different series in each chart. I tried this way:

<apexchart type="bar" height="100%" :options="chartOptionsRealTime" :series="seriesRealTime[0]"></apexchart>

with series like:

seriesRealTime: [{
            name: 'first',
            data: [2.3, 3.1, 4.0, 10.1, 4.0, 3.6, 3.2, 2.3, 1.4, 0.8, 0.5, 0.2]
        },
        {
            name: 'second',
            data: [2.3, 3.1, 4.0, 10.1, 4.0, 3.6, 3.2, 2.3, 1.4, 0.8, 0.5, 0.2]
        },
        {
            name: 'second',
            data: [2.3, 3.1, 4.0, 10.1, 4.0, 3.6, 3.2, 2.3, 1.4, 0.8, 0.5, 0.2]
        }],

but :series="seriesRealTime[0]" doesn't work.

I want to create the firs chart with the series named "first", the second with the series named "second", ecc... Thre is a way to solve it?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can see in documentation https://apexcharts.com/docs/options/series/

Accepts an array of [name, data] object...

So you need to pass an array

<apexchart type="bar" height="100%" :options="chartOptionsRealTime" :series="[seriesRealTime[0]]"></apexchart>
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!