Forum Replies Created by Saulius

Viewing 5 posts - 1 through 5 (of 5 total)
  • in reply to: How to reduce number of 0 on Y axis? #29031

    Please Ignore this. It has been resolved using this function:

    function addSymbols(e) {
                    var suffixes = ["", "K", "M", "B"];
    
                    var order = Math.max(Math.floor(Math.log(Math.abs(e.value)) / Math.log(1000)), 0);
                    if (order > suffixes.length - 1)
                        order = suffixes.length - 1;
    
                    var suffix = suffixes[order];
                    return CanvasJS.formatNumber(e.value / Math.pow(1000, order)) + suffix;
                }

    and declaring it in Y axis.

    Thank you.

    in reply to: How can I prevent x-axis labels from being hidden? #29030

    What Happens when you zoom to the graph? This could be because it automatically tries to fit labels it self so text would not overlap. Just add legend instead.

    • This reply was modified 4 years, 7 months ago by Saulius.
    • This reply was modified 4 years, 7 months ago by Saulius.
    in reply to: Data only Loads after window is resized #29000

    **** UPDATE ****

    In combination with your advise and another solution I managed to make it work thanks to you.

    So first problem was, as you pointed out, I was not rendering data after retrieving it so I used chart.render(); after getting data.

    The next issue was, that only one graph was showing up instead of two. That was caused by me trying to render two graphs with one chart.render(); function instead of two. +++SOLUTION+++. So I called my two graphs chart1 and chart2, and I used this

    chart1.render();
    chart2.render();

    to update graphs and now both graphs are working without the need of resizing window.
    .

    Thank you for your help, I am very pleased to choose this package, not only that it is very nice package, but support is very good too. Thank you to you and your team.

    • This reply was modified 4 years, 7 months ago by Saulius.
    in reply to: Data only Loads after window is resized #28998

    Vishwas,

    I have followed your recommendations as instructed and it made a difference. Thank you very much, I am very grateful for still helping with this. One graph, TotalVoltage, worked very well where TotalPower still has the same issue. It must be something that I am doing incorrectly in the code which I need to investigate further. Your recommendation definitely helped and made difference. Makes sense, when you mentioned about it.

    in reply to: Data only Loads after window is resized #28994

    @Vishwas R

    Thank you kindly for your quick response. I will follow your advice to see if anything will change. I will let you know if I am having the same issue.

    Best regards,
    Saulius

Viewing 5 posts - 1 through 5 (of 5 total)