coldfusion cfchart horizontal bar graph - coldfusion

In coldfusion Horizontal bar graph, cfchartseries using cf query resultset & valueColumn contains values as (25,65,20), itemcolumn as empty string, I don't want to display the descriptions. Please refer the attached Horizontal_cfchart.png, In x-axis It shows the range from 0 to 70, and we can recognize the horizontal bar data points(25,65,20), but recently the x-axis values displays the range from 0.0,0.1,0.2,0.3,0.4........1.0,
I don't know what the exact issue, please share your thoughts.

Related

Is there a better way to plot data on a bar chart in Power Bi?

I am working with an imported data set from Excel, for each row there is a volume for each year 2020-2030 as an individual column.
Trying to plot the sum of each column 2020-2030 in a bar chart however this does not display as expected. See attached images. Already tried adding the data to the Axis field but this does not work.
The goal is to have a plot with years 2020-2030 on X-Axis and total volume on Y-Axis, then clicking on an individual year will then filter related plots by year. So far I can only sort the data in the opposite direction clicking on a category to see the volume for a single year.
Looking for help on how to plot the data specifically and then how to link this plot to other visuals in the report.
Bar Chart Created
Layout of Data
You will need to unpivot your data in m-query editor. Click on "transform-data". Select the table your data is on. Click the transform TAB. Select the year columns and click unpivot.
Now you get a table with many more rows wtih data like CY 2020, CY 2021 etc
You need to convert this to a number. you can do this by adding a column which picks up the 4 right chars and converts it to number:
Goto tab "Add Column", click Custom Column. Give column name and type:
Number.FromText(Text.End([YourColumnwiththeCY2020],4))
To make it even better, delete the column you had created during the unpivot. On this table you can do the graph representations..
apply and close to go back to your dashboard
Use unpivot in PowerQuery (M) to turn the columns for each date in to a single column containing the period with values (CY-2020, CY-2021, CY-2022 etc). You can remove the CY- and turn this in to an integer column, or convert it to a date, e.g. 1/1/2020. This will plot far better on your chart as an axis as opposed to the multi values approach in you screen shots.
See a blog post from Radacad here that provides a how to.

How do I display the values ​on the google chart?

I would like to show the values ​​in the graph lines, as in the image, but found nothing in the documentation about it.
This value is shown only when I hover over the point on the graph line. I want the values ​​to be shown on the chart without having to hover over.
How do I display the values ​​on the google chart?

hiding x-axes labels with 0 values on a bar chart

I have a map (K, V) of dates and values that I'd like to display in a bar chart using chart.js. Date being on the x-axis and the count/number on the y-axis. The dates are sporatic so I want to hide all of the dates that don't have values (i.e. count = 0). In other words, I only care about showing dates that have data.
I'm kind of new to chart.js so I've tried messing with some of the scales chart options but not finding great api documentation of what all of the options are to configure.
You may try to filter your data before passing it into chart.js with function filter.

Displaying labels for grouped datasets in ChartJS clustered column graph

Not sure how to even define this question, so bear with me!
First, I want to display multiple unrelated datasets, side by side.
Second, for each dataset, I'd like to have column-based lables (default for each column), then an overall "grouped" label for the dataset.
I can "fake" the appearance of this chart by entering a "zero" column entry, creating the gap between the "datasets" I have (even though in ChartJS is just one dataset).
The text line one is default behaviour with ChartJS to display the column label. However getting a "grouped" label to appear is beating me! What I've ended up doing is generating the chart label-less, then doing some funky HTML hacks to get the labels back with the grouped text I need. This approach is not scalable.
Can anyone point me in the right direction for this? Doesn't have to be ChartJS powered.

Line Chart - show / hide display Y-Axis data in datatable for chart

For the line chart, I have 2 Y-Axes data for the DataTable and they are displayed great on the chart. The situation I have is the 1st Y-Axis data is Historical value and the 2nd Y-Axis is the Estimated Forecast.
What I want is the Historical data chart-line to be display and hide the Forecast data chart-line until it reach a point where the display lines is flipped over (start permanently hide the historical line-chart and start showing forecast line-chart).
What property or object am I looking for that deal with show and hide data?
Thanks...