Forum Replies Created by Sunil Urs

Viewing 15 posts - 511 through 525 (of 548 total)
  • in reply to: guide line #4659

    Yes, bar charts cannot be combined with other chart types. You can use stackedColumn if that works for you. Trendlines have been planned for version 1.3. If you can post some picture depicting what you are looking for, that would be helpful.

    in reply to: guide line #4651

    Hi,

    As of now there is no separate element for doing that. But you can use Combination Charts to do the same. Just add a line chart and disable markers by setting markerSize to 0.

    in reply to: issue with AJAX all with DateTime type return #4649

    Charles,

    I agree that the data you have is in JSON format. But you need to convert it into a JavaScript Objects before passing it to Chart. I’ll consider supporting JSON Date Time format in future version. But for now there is an easy way to do it. You can directly send the timestamps & set xValueType property to “dataTime”.

    Chart with timestamp values on x axis


    Sunil Urs

    in reply to: issue with AJAX all with DateTime type return #4647

    Charles,

    Data Points are not in the expected format. You need to remove the quotes and escape characters. Below is the expected Input

    {"x": new Date(1370439429173),"y":10},{"x":new Date(1370070000000),"y":30}

    here is a link that might be of help.

    in reply to: How can I use PHP MySQL Dynamic data #4645

    Marco,

    What is going wrong is that you are assigning a new array to dps while dataPoints is still pointing to old one. So instead you should either modify existing dps array or assign a totally new array to dataPoints.

    1st Approach:

    var updateChart = function () {
    $.getJSON(“data.php”, function (result) {

    dps.splice(0, dps.length);

    $.each(result, function (index, value) {
    dps.push(value);
    });
    });

    chart.render();
    };

    2nd Approach:

    var updateChart = function () {
    $.getJSON(“data.php”, function (result) {

    chart.options.data[0].dataPoints = result;

    });

    chart.render();
    };

    in reply to: Canvasjs marker #4640

    Ron,

    It is being introduced in the upcoming version. You can either customize or remove the same using creditHref & creditText properties of Chart (top level). Setting either one of the properties to null will remove the link.

    in reply to: Cursor on data points #4637

    Samip,

    That makes sense. I’ve just implemented the feature. Here is an internal build – public release will take couple of days. Do try out and let me know.

    Basically you need to set “cursor” property of dataSeries / dataPoint.


    Sunil Urs

    in reply to: How can I use PHP MySQL Dynamic data #4636

    Marco,

    Can you please post the JSON data that the service is returning so that I can figure out what the problem is. Do make sure that the x & y values being returned are not enclosed in quotes like “5”.


    Sunil Urs

    in reply to: Exampls issue #4635

    Tim,

    The issue has been fixed. Thanks for reporting. Here is an internal build.

    Thanks for reporting.


    Regards,
    Sunil Urs

    in reply to: minutedata gives monthissue #4630

    Tim,

    I looked into the data and here is the problem. In JavaScript, Month Value Starts from 0 and ends at 11. I know this is counter intuitive, but that is how it is in JS.

    http://www.w3schools.com/jsref/jsref_getmonth.asp

    So what is happening is that Month 05 in your data is actually June. As there is no 31st in June, it is being considered as July 1st. Because of this the chart is starting from July 01 23:58 and then moving on to July 01 00:00. This is reason for the oblique line.

    Just reduce the month values by one (keeping the range 0-11) and it should work fine.

    Tip: You might also want to look at Data/Time formatting if you want Midnight to be displayed as 00 instead of 12.

    Thanks for reporting it though. I actually found another bug related to toolTip instead and have fixed the problem. I’ll email you the newer version soon after the doughnut issue is resolved. Public release is couple of days away.


    Regards,
    Sunil Urs

    in reply to: Exampls issue #4629

    Tim,

    Am looking into both the issues reported. Will get back soon.

    in reply to: minutedata gives monthissue #4626

    Tim,

    The link doesn’t work. Did you pull it down?… Can you please enable it for a day so that I can have a look.

    in reply to: minutedata gives monthissue #4619

    Tim,

    Can you please post a screenshot so that it is easier for me figure out what the problem is? Also a sample data (in JSON) that can reproduce the issue would be helpful.

    in reply to: Number looses format in toolTipContent #4617

    gtrmanx,

    That issue has been fixed in the upcoming version – 1.2 beta. Though it’ll take some time for the public release, I can give you the latest version for testing – by monday.

    in reply to: Holding Memory #4613

    Suman,

    Looking at the code, I can say that the problem is because you are creating the an entirely new Chart every time – while previous chart is still there – check using firebug. Instead you should create only one Chart object and call chart.render() each time you want to update (after modifying the data).

    Here is a section on creating Dynamic Charts.

Viewing 15 posts - 511 through 525 (of 548 total)