{ Dev Farm }

Web & Windows Development

Automatic High Chart by Alt

Home Forum Wp Gpx Maps Support Automatic High Chart by Alt

  • Questo topic ha 2 risposte, 2 partecipanti ed è stato aggiornato l'ultima volta 14 anni fa da MArkus.
Stai visualizzando 3 post - dal 1 a 3 (di 3 totali)
  • Autore
    Post
  • #570 Rispondi
    MArkus
    Ospite

    Hello,

    saldy I had some Problems with the automatic Scale from the Altitude Chart. It was not working at all. I made some changes (with worst code), but now it’s working very fine by me. Maybe I made a mistake that it was not working before.

    Change on WP-GPX-Maps.js
    if (graphEle != ”)
    {

    var eleData = [];
    var myelemin = 9999;
    var myelemax = 0;

    for (i=0; i<valLen; i++)
    {
    if (graphDist != null)
    eleData.push([graphDist,graphEle]);
    if (graphEle > myelemax) myelemax = graphEle; if (graphEle < myelemin) myelemin = graphEle;
    }

    var yaxe = {
    title: { text: null },
    labels: {
    align: ‘left’,
    formatter: function() {
    return Highcharts.numberFormat(this.value, l_y.dec,decPoint,thousandsSep) + l_y.suf;
    }
    }
    }

    if ( chartFrom1 != ” )
    {
    yaxe.min = chartFrom1;
    yaxe.startOnTick = false;
    }
    else { yaxe.min = myelemin; }

    if ( chartTo1 != ” )
    {
    yaxe.max = chartTo1;
    yaxe.endOnTick = false;
    }
    else { yaxe.max = myelemax; }

    hoptions.yAxis.push(yaxe);
    hoptions.series.push({
    name: lng.altitude,
    lineWidth: 1,
    marker: { radius: 0 },
    data : eleData,
    color: color2,
    yAxis: hoptions.series.length
    });

    l_y_arr.push(l_y);
    }

    #575 Rispondi
    max
    Membro

    Thank you for your code, automatic scale stopped working when I upgraded Highcharts to the 2.2.5 version.
    From the next plugin update it will works again!

    #583 Rispondi
    MArkus
    Ospite

    Perfect, thank you very much

Stai visualizzando 3 post - dal 1 a 3 (di 3 totali)
Rispondi a: Risposta #583 in Automatic High Chart by Alt

You can use BBCodes to format your content.
Your account can't use Advanced BBCodes, they will be stripped before saving.

Le tue informazioni:




Non è possibile lasciare nuovi commenti.