jQWidgets Forums

jQuery UI Widgets Forums Chart Chart with missing values and xAxis Type Date

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 10 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • jkorrek
    Participant

    Dear Support-Team,

    I am having problems displaying a column chart with missing values when using a “date” based x axis. The colums are overlapping each other.

    Example

    The calculation of the column width seems to be wrong in the _calculateXOffsets function in jqxchart.core line 5961

    var itemsCount = Math.max(1, isDateTime ? xoffsets.length : rangeLength);
    var itemWidth = plotSize / itemsCount;

    I was able to fix this problem changing these lines to:

    var itemsCount = Math.max(1, isDateTime ? this._getDateDiff(min, max, xAxis.baseUnit) : rangeLength);
    var itemWidth = plotSize / itemsCount;

    Could you please check if there is another solution for this problem or include this patch in the next release?


    Peter Stoev
    Keymaster

    Hi jkorrek,

    1. We will review this.
    2. Do not post code from our sources because this is in violation with the EULA.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

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

You must be logged in to reply to this topic.