Avatar of Isaac
Flag for United States of America asked on

Add to multiarray

This is my first time trying to use jqPlot.  http://www.jqplot.com/tests/pie-donut-charts.php

How can I add data to the array below?
For example;
how would I add ('Laptops', 15), ('Hardware', 25), ('Software', 35)?

var data = [
    ['Heavy Industry', 12],['Retail', 9], ['Light Industry', 14],
    ['Out of home', 16],['Commuting', 7], ['Orientation', 9]

Please see jsfiddle (http://jsfiddle.net/aF9Q7/4/)
JavaScriptjQueryScripting Languages

Avatar of undefined
Last Comment

8/22/2022 - Mon

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy