Opened 7 years ago

Last modified 7 years ago

#15915 closed defect

non-indexed column chart are not working if not starting at x=0 and having values greater than the data array length — at Version 1

Reported by: cjolif Owned by: Eugene Lazutkin
Priority: undecided Milestone: 1.8.1
Component: Charting Version: 1.8.0
Keywords: Cc: Mathevet julien
Blocked By: Blocking:

Description (last modified by cjolif)

With #15308 was introduced in Dojo 1.8 the ability to render non-indexed column plots. However if the first value of the series is at x != 0 and having values greater than the data array length the rendering is incorrect.

Change History (2)

Changed 7 years ago by cjolif

Attachment: test_15308.html added

test case that does reproduce the issue

comment:1 Changed 7 years ago by cjolif

Cc: Mathevet julien added
Description: modified (diff)
Summary: non-indexed column chart are not working if not starting at x=0non-indexed column chart are not working if not starting at x=0 and having values greater than the data array length

This comes from the fact the for loop on the values in Columns.js starts with min that is the first x-value in the data but last for getDataLength() which is (if the data array length is less than the maximum value of the data) the number of items in the data not the max - min x-value.

Note: See TracTickets for help on using tickets.