Forum Replies Created by adrian3k

Viewing 6 posts - 1 through 6 (of 6 total)
  • @shashiranjan

    earlier fiddle: first post problem / example
    Here is the code with some data (some dates are missing content – it can’t be resolved, reply from 1 june)
    But the idea is to “generate dataPoints” using function for data.name – is it possible?

    Will try to make some code for the ‘idea’ with Array’s – will need some free time for it :)

    @shashiranjan,
    Post in plain TXT file

    Hope it will be okay to view this in plain text (forum style would be better..)

    Thank you for your time!

    New idea
    Maybe use Array’s to achieve my goals?

    Go with array for AxisX (generate all the 2020,1,1 2020,1,15 2020,2,1 2020,2,15 etc)
    Then make array for chart lines containing all the data (with day and other values)

    And at the end use functions to compare dates and insert value from ‘earlier’ date?

    But not sure if it can be achieved in canvasJS to insert dataPoint from array’s/functions :D

    Thank you for reply.. is there a way to use function to “generate dataPoint” so it can make all the nonpresent y-value same?

    code would be here but got blocked by cloudflare

    and then go with some var-lastline-container in function, like:

    code would be here but got blocked by cloudflare

    Maybe this would be a better way to go with my “idea”?

    And back to second question – the x-axis data from first to current in 2 week split – is it possible?

    cant reply

    after i tried to edit post i got this — Cloudflare Ray ID: 59e5006d6b0f973c

    Sorry, you have been blocked
    You are unable to access canvasjs.com

    Why have I been blocked?
    This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.

    What can I do to resolve this?
    You can email the site owner to let them know you were blocked. Please include what you were doing when this page came up and the Cloudflare Ray ID found at the bottom of this page.

    • This reply was modified 3 years, 10 months ago by adrian3k.
    • This reply was modified 3 years, 10 months ago by adrian3k.

    Url to fiddle: see the code / chart

    And not to create another topic (this one should be easier, I think)
    Is there a way to set AxisX using dates from dataPoints and current date to, lets say, 2 week difference?

    first dataPoint: 2020, 1, 1
    current Date: 2020, 5, 30

    dataPoints (multiple different values of Date)

    2020, 1, 3
    2020, 1, 18
    2020, 2, 4
    2020, 2, 13
    2020, 2, 19
    etc.

    I would like to have AxisX to contain:

    2020, 1, 1
    2020, 1, 15
    2020, 2, 1
    2020, 2, 15
    etc.
    until current date: 2020, 5, 30 (last one should 'change' everyday)
Viewing 6 posts - 1 through 6 (of 6 total)