Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Stacked Bar Chart with Multiple Series Sort Question

Mike Straka-OracleMay 21 2012 — edited May 22 2012
Hi,

Apex version 4.1.1

I have a stacked bar chart with three separate series, one showing customer effort, another showing project effort and the third showing other effort, summarized by calendar week. The x-axis of the chart is the calendar "week of" date, and the y-axis has a bar for each of the three series. Not every type of effort occurs every week.

When AnyChart renders the chart, the order of entries on the x-axis seems to be dependent both on which series are present in a given week as well as the "week of" date. Weeks with all three series sort in order by calendar date, followed by weeks where just the 2nd & 3rd series are present, followed by weeks where just the 3rd series is present. See this [url http://tinypic.com/r/b9zdt/6] picture of the chart noting the "week of" dates. Note that the months go Sep-Oct-Nov-Aug-Oct.

Is there a way to force AnyChart to sort the x-axis in chronological order regardless of whether there is data for all three series for a given week? I have looked through the AnyChart XML reference but cannot find a way to do this.

Incidentally, I can solve the sorting problem by combining all three series into a single query:
select
  null as link,
  week_of as label,
  sum(customer_effort) as "Customer Effort",
  sum(project_effort) as "Project Effort",
  sum(other_effort) as "Training, Admin and Other Effort"
from ...
But if I do this, I cannot figure out how to have each bar on a given week link to a different detail page, e.g., if I click on a bar representing customer effort I want to link to one page, but if I click on a bar representing project effort, I want to link to a different page. I have had a look at the [url http://apex.oracle.com/pls/apex/f?p=36648:59:1570983160946101::NO:::] chart examples posted on apex.oracle.com, but cannot figure out how to apply to multiple series in a single query.

Thanks,
Mike
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 19 2012
Added on May 21 2012
2 comments
1,633 views