Home Forums Chart Support Daynamic Data set

Daynamic Data set

Viewing 4 posts - 1 through 4 (of 4 total)
  • #15035

    I am using canvasJS. It is fantastic for any graphical solution. Now I have a requirement that is

    1. I have a set of assessment questions like:
    Q1. This is first question
    1. disappointed
    2. Unsatisfactory
    3. Needs Improvement
    4. Adequate
    5. Strong
    Q2. This is second question
    1. disappointed
    2. Unsatisfactory
    3. Needs Improvement
    4. Adequate
    5. Strong

    2. Users will give their answer.
    3. If there are three peoples answered Q1 and two peoples answered Q2
    4. The graph will be
    |
    |——————-|3
    |——————-|
    |————-|2
    |————-|Q1 (Avg: 3)
    |————————-|4
    |————————-|
    |
    |
    |————————-|4
    |————————-|
    |——————-|3
    |——————-|Q2 (Avg: 3.5)
    |—————————————————
    5. Data set will generate dynamically from database
    6. Calculate average for every questions (based on the number of peoples are answered to each question).
    7. Chart will be bar chart

    Please help me how can I do this?

    example image:
    ==============
    https://drive.google.com/file/d/0B7mk4P417VqLckJrSWphd1czMUk/view?usp=sharing

    • This topic was modified 6 years, 11 months ago by mujahid_102.
    • This topic was modified 6 years, 11 months ago by mujahid_102.
    #15045

    @mujahid_102,

    Please have a look at this jsfiddle. Also refer this thread.
    ___
    Suyash Singh
    Team CanvasJS

    #15046

    Dear Brother @suyash singh

    Problem is:

    The number of answer will be different for each question. If Q1 answered by 3 persons, Q2 may be answered by 2 persons. Then how can I do this?

    • This reply was modified 6 years, 11 months ago by mujahid_102.
    #15072

    @mujahid_102,

    Please refer this thread.

    ___
    Suyash Singh
    Team CanvasJS

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

You must be logged in to reply to this topic.