With the upgrade of ColdFusion 9 to ColdFusion 11, the main chart engine has changed from WebCharts3D to ZingCharts. Although I managed to find solutions for most of the incompatibility between the two libraries and their implementation in the <cfchart> , I struggle to understand the alignment problem that was not encountered in ColdFusion 9. I did not even find a fix that uses pure javascript and HTML.
In manuals and ticks, WebCharts3D are focused in a line on a histogram. The combined linear and histograms have guides that are guided to the center of the panel and through the line chart markers. This is the same behavior as in line charts.
In ZingCharts, the guides and ticks of the combined chart or histogram are located on the left to the panel and do not pass line markers. This is a different behavior than in line charts. The signs of the x axis are ideally located in both engines, i.e., K.
Here you can see an example: http://jsfiddle.net/yo3uta96/
Problem:
I do not have publicly accessible pages with meteorological statistics showing rain, wind, temperature, etc., which are presented in several diagrams one below the other. Some of them are line charts, some of them are bar charts, and some of them are combined charts. This is a dynamically created page where users can select a date range up to 365 days in the past. Each graph on the page has the same number of data points. When, to display more than 80 data points, the charts turn into area charts, a line chart into line charts without markers.
What I want to achieve:
I want the charts, data points, guides, and ticks to line up like the x-axis labels.
What I tried:
I managed to build datapoints by adding offsetStart and offsetEnd to line charts, this is necessary because in the combined chart the first marker of the line chart is placed in the center with the corresponding first bar and no longer sits on the y axis, as in line charts. The same goes for the last marker.
Unfortunately, adding offset does not solve the alignment problem with ticks and guides. I tried almost any possible combination with guides, minorTicks, minorGuides and offsets to no avail. In an ideal world and some edgecases where each x-axis label is shown in the diagram, turning off guides and setting minor ticks to 1 may work. But this method stops working when the number of data points increases.
Question:
How can I build tooltips and ticks in histograms and line charts with the same number of data points in the same way that ZingCharts handles x-axis labels that seem to be perfectly aligned with the charts?