octocatstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              var options = {
        animate: true, // Turns on animation for all series in this plot.
        // Will animate plot on calls to plot1.replot({resetAxes:true})
        animateReplot: true,
        cursor: { //Cursor attributes
            show: true,
            zoom: false,
            looseZoom: true,
            showHorizontalLine:false,
            showTooltip: false
        },
        series:[ 
            {  //array1 : bar chart
                label:'user',
                color:'#96EDFA',
                renderer: $.jqplot.BarRenderer,
                xaxis: 'xaxis',
                rendererOptions: {
                // Speed up the animation a little bit.
                // This is a number of milliseconds.  
                // Default for bar series is 3000.  
                animation: {
                    speed: 2500
                 },
                    barWidth: 40, //Create the bar
                    barPadding: -15,
                    barMargin: 0,
                    highlightMouseOver: false
                }
            },
            {  //array2 : point
                label:'team',
                color:'green',
                showLine: false, // Remove the line from the 
                xaxis: 'xaxis',
                rendererOptions: {
                    ………….
                }
            },
            {   //array3 : point
                label:'division',
                color:'blue',
                showLine: false, // Remove the line from the
                xaxis: 'x2axis',
                rendererOptions: {
                    ………….
                }
            },
            {   //array4 : point
                label:'business group',
                ………….
            }
        ],
        legend: {   // Show the legend and puts it outside the grid
            show: true,
            placement: 'outsideGrid'
        },
        axesDefaults: {
            pad: 0
        },
        axes: {
            xaxis: {  // These options will set up the x axis like a category axis.
                tickInterval: 1,
                drawMajorGridlines: false,
                drawMinorGridlines: false,
                drawMajorTickMarks: false,
                rendererOptions: {
                    tickInset: 0.5,
                    minorTicks: 1
                }
            },
            x2axis: {
                showTicks: false,
                ………….
            },
            yaxis: {
                rendererOptions: {
                    forceTickAt0: true
                }
            }
        },
        highlighter: {//On mouseover highlighter attributes
            show: true, 
            showLabel: true, 
            tooltipAxes: 'x',
            tooltipLocation : 'ne'
        }
};
$.jqplot("target div", [array1, array2, array3, array4], options);

            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console