Ploty.min.js Always Display Data - javascript

I am fairly new to Ploty.min.js. The chart I am using is a line graph with a simple Y as values, and X as dates. When the user hovers over a data point it displays the data. My Goal is to pass into the layout or configuration of this chart a true or false to display all of the data as if they were being hovered over at all times.
I've seen hovermode as a layout option, but that either displays the data when hovered or not at all. I'm currently away from my work station so I can't display any code as of right now.
In the image below you can see that I have hovered over a data point and it shows the data. I would like all of the data values be displayed as if they were all being hovered over all at once.

Related

Dygraph in Phyton : How to remove label but still use its values in the graph?

I am working with Dygraph in python. I want to remove a label from the legend. If you look into the example photo attached bellow you can see "A:2.77 B:2.29". Is it possible to remove the B label, but still use its values and to be displayed in the graph?
Currenlty, in my project self.page().runJavaScript(f'g.updateOptions({{file:{file},labels:{labels}}});') is getting the calculated labels and their values and displaying them. However, if I go and remove part of it , it will be removed from the graph as well.
self.exampleCalculated.emit({'Price (Next 2 days)': example_forecast['price1'][0:48], 'SystemPrice': systemPrice[0:48], 'Other': otherPrice[0:48]})
Example

Show hint data inside bar in DevExpress chart controls

I have an ASP.NET web forms application which uses DevExpress's bar chart controls. In the below side-by-side bar chart:
I needed to show some extra information apart from traditional x and y argument-values using series point's {HINT} pattern (Hospital Admissions: 130, (65%)) - as per the image.
Now, I need to show it in the bar itself. Like the control shows by-default for Stacked bar charts:
How do I push the Tool tip hint data to be shown inside the data bars?
Any suggestions, kind folks?
It is possible to access the current data row directly when handling the CustomDrawSeriesPoint event. Cast the e.SeriesPoint.
Tag property to the corresponding type (e.g., DataRowView). This should make it possible to update the SeriesPoint label text.
You can find a small sample project that illustrates this approach in the Chart Series Label from a dataset column that is not part of the series ticket.

*Highchart* tooltips format

I have an area percent chart similar to this example: http://www.highcharts.com/demo/area-stacked-percent.
Everytime I point my mouse to the graph, the tooltip show all the values which located in the same column, for example: Asia, Africa, America,.... I want to ask is it possible to format the tooltip so that it display only the value of the point that my mouse point to, for example when I point to Asia, it display only the value for Asia and so on, not all the values in the same column
And one more thing with the tooltips is even when I point my mouse outside of the graph, the tooltips still be displayed like this: . How can I fix it ?
If you set the shared-Property of the tooltip to false (or remove it completely, since 'false' is the default) then it will only be shown for individual points.
tooltip: {
shared: false
}

Labels for bar charts in Cognos

I have a Cognos chart and I want to be able to turn on one label that shows the amount for just the bar that is showing with conditional formatting (the selected center from a drop down list).
I have found a way to turn all of the labels on, and all of the labels off with Cognos chart - show values - but there has to be a way to only turn on just one specified value.
I am trying to create some JavaScript that will assist me in manipulating the specific element that is the selected value for my chart. Does anyone know how to find the ElementID for each individual bar in a Cognos bar chart?
Here is an example rendering of what Cognos creates will all the labels turned on: http://i.imgur.com/aM4gEYu.jpg
I am trying to create a rendering with only the label for the blue bar showing.
just click on 'series' on chart
set from properties pane
value to 'yes'
Grouping type ---> stacked
value location ----> outside top
value type ----> absolute

Highcharts Columns with empty columns

I want to show a column chart that will show empty columns on days without data. I have previously done this in amCharts, but trying to switch everything over to js charting.
Here is an example:
https://skitch.com/jhanifen/gy324/jhanifen-skitch.com
Basically if I could change the color of individual columns that would also work.
Answer provided on Highcharts forum.
http://highslide.com/forum/viewtopic.php?f=9&t=12873
You can set the y value to 100, and set a secondary value to the actual value, which you can then grab in the tooltip formatter.
see this example: http://jsfiddle.net/jlbriggs/BLxUL/
Depending on which you have more of, you can either set the bar color in the plotOptions, and call the 'blank' color in the data array when needed, or the other way around (as in the example)
Thanks jlbriggs!

Categories