Skip to main content
se añadieron 276 caracteres en el cuerpo
Origen Enlace
user75901
user75901
var chart = Highcharts.chart('container',{title:{text: ''},xAxis:{//categories: fecha,labels:{rotation:-80,style:{fontFamily: 'Sans-serif',fontSize: '12px',}},},credits:{enabled: false,},plotOptions:{line:{dataLabels:{enabled: true,style:{fontWeight: 'normal',color: '#000000',fontSize: '10px',fontFamily: 'Sans-serif'},},enableMouseTracking: false},},series: [{name: 'Installation',data: [43934, 52503, 57177]},{name: 'Manufacturing',data: [24916, 24064, 29742]},{name: 'Sales & Distribution',data: [11744, 17722, 16005]},{name: 'Project Development',data: [null, null, 7988]},{name: 'Other',data: [12908, 5948, 8105]}],});for(let i = 0; i
<div id="container" style="height: 400px"></div>


<script>

var chart = Highcharts.chart('container', {

                title: {
                    text: ''
                },
                xAxis: {
                    //categories: fecha,
                    labels: {
                        rotation: -80,
                        style:
                            {
                                fontFamily: 'Sans-serif',
                                fontSize: '12px',
                            }
                    },
                },
                credits:
                {
                    enabled: false,
                },
                plotOptions: {
                    line: {
                        dataLabels: {
                            enabled: true,
                            style: {
                                fontWeight: 'normal',
                                color: '#000000',
                                fontSize: '10px',
                                fontFamily: 'Sans-serif'
                            },
                        },
                        enableMouseTracking: false
                    },
                },
series: [{
        name: 'Installation',
        data: [43934, 52503, 57177]
    }, {
        name: 'Manufacturing',
        data: [24916, 24064, 29742]
    }, {
        name: 'Sales & Distribution',
        data: [11744, 17722, 16005]
    }, {
        name: 'Project Development',
        data: [null, null, 7988]
    }, {
        name: 'Other',
        data: [12908, 5948, 8105]
    }],
            });

for(let i  = 0; i< chart.series.length; i++){

    for(let j  = 0; j< chart.series[i].data.length; j++){

        //alert(chart.series[i].data[j]);
        //console.log(series[i].data[j]);

    }  

}

</script>
var chart = Highcharts.chart('container',{title:{text: ''},xAxis:{//categories: fecha,labels:{rotation:-80,style:{fontFamily: 'Sans-serif',fontSize: '12px',}},},credits:{enabled: false,},plotOptions:{line:{dataLabels:{enabled: true,style:{fontWeight: 'normal',color: '#000000',fontSize: '10px',fontFamily: 'Sans-serif'},},enableMouseTracking: false},},series: [{name: 'Installation',data: [43934, 52503, 57177]},{name: 'Manufacturing',data: [24916, 24064, 29742]},{name: 'Sales & Distribution',data: [11744, 17722, 16005]},{name: 'Project Development',data: [null, null, 7988]},{name: 'Other',data: [12908, 5948, 8105]}],});for(let i = 0; i
<div id="container" style="height: 400px"></div>


<script>

var chart = Highcharts.chart('container', {

                title: {
                    text: ''
                },
                xAxis: {
                    //categories: fecha,
                    labels: {
                        rotation: -80,
                        style:
                            {
                                fontFamily: 'Sans-serif',
                                fontSize: '12px',
                            }
                    },
                },
                credits:
                {
                    enabled: false,
                },
                plotOptions: {
                    line: {
                        dataLabels: {
                            enabled: true,
                            style: {
                                fontWeight: 'normal',
                                color: '#000000',
                                fontSize: '10px',
                                fontFamily: 'Sans-serif'
                            },
                        },
                        enableMouseTracking: false
                    },
                },
series: [{
        name: 'Installation',
        data: [43934, 52503, 57177]
    }, {
        name: 'Manufacturing',
        data: [24916, 24064, 29742]
    }, {
        name: 'Sales & Distribution',
        data: [11744, 17722, 16005]
    }, {
        name: 'Project Development',
        data: [null, null, 7988]
    }, {
        name: 'Other',
        data: [12908, 5948, 8105]
    }],
            });

for(let i  = 0; i< chart.series.length; i++){

    for(let j  = 0; j< chart.series[i].data.length; j++){

        //alert(chart.series[i].data[j]);
        //console.log(series[i].data[j]);

    }  

}

</script>
Origen Enlace
Pollo
  • 25
  • 1
  • 1
  • 4

Recorrer objeto java script

Ya habia hecho anteriormente esta pregunta, y sus respuestas si funcionaron en la consola de javascript, pero este es mi ejemplo completo, y estoy aplicando lo que me recomendaron, y aun no he podido acceder a los numeros o los datos del array q creo.

var chart = Highcharts.chart('container', { title: { text: '' }, xAxis: { //categories: fecha, labels: { rotation: -80, style: { fontFamily: 'Sans-serif', fontSize: '12px', } }, }, credits: { enabled: false, }, plotOptions: { line: { dataLabels: { enabled: true, style: { fontWeight: 'normal', color: '#000000', fontSize: '10px', fontFamily: 'Sans-serif' }, }, enableMouseTracking: false }, }, series: [{ name: 'Installation', data: [43934, 52503, 57177] }, { name: 'Manufacturing', data: [24916, 24064, 29742] }, { name: 'Sales & Distribution', data: [11744, 17722, 16005] }, { name: 'Project Development', data: [null, null, 7988] }, { name: 'Other', data: [12908, 5948, 8105] }], }); for(let i = 0; i