When activating a drilldown behaviour in the widget's navigation panel i'm trying to understand how to change the title and the axis label based on some complex logic.
I would like to write some articulated function that changes some part of the graph (title, category labels) by a custom logic.
Related
SEE PICTURE I'm using apexcharts for displaying a radar chart. I want to trigger an event when the user clicks on one of the categories of the radar (see image), but the event doesn't seem to be triggered. I have read the documentation and used, between all the events, the xAxisLabelClick event, which seems to work for the other charts. Does anyone know how?
I have tried all the apexcharts events, but none of the work
Apparently it's a bug. I've just filled an issue.
Based on the zooming to countries map how can I have a url property field available ONLY after the user clicks on a particular country? (so a 2nd click fires the url or after a certain zoom level).
https://www.amcharts.com/demos-v4/zooming-to-countries-map-v4/
This function was working in v.3, there is an example here
https://www.amcharts.com/docs/v3/tutorials/map-zoom-first-click-marker-go-specific-url-next-click/
Also, how can have hover color affect only some countries?
I'd like to change the default style of the list-view control's tooltips to balloon.
I first called ListView_GetToolTips() to get the HWND of the list-view's tooltips control, and then used GetWindowLongPtr()/SetWindowLongPtr() to add the TTS_BALLOON style.
I handle LVN_GETINFOTIP to customize the tooltip for the items (first column) in the list-view: the tooltip texts that appear for the first column items are actually a copy of the text of the third column. The other columns (subitems) are managed automatically by the list-view.
The balloon-style tooltips for the first column items seem OK; their stems are correctly positioned:
But the tooltips for the second column seem drawn wrongly, e.g. the balloon is drawn as if it was referred to a subitem in a row below the actual row pointed by the mouse cursor.
In the following picture, the "star" indicates the position in which the mouse cursor was when the tooltip appeared, but the tooltip's stem points to a row below, marked with an ellipse:
The strange thing is that the tooltips for the third column seem drawn correctly.
Is this a bug in the list-view control? (I'm using Windows 7.)
Or what am I missing here?
The ListView uses a tracking tooltip and positions it to unfold and reveal the hidden text in a column that's too small. It's not expecting its tooltip to be a balloon and so doesn't compensate for that.
You'd need to sub-class the tooltip itself, watch for TTM_TRACKPOSITION messages from the ListView, and adjust the coordinates.
Your second question - the shaded background comes from the system theme. You should be able to get it by calling SetWindowTheme on the tooltip (I'm not sure why the ListView disables themes for the tip).
I have created a bar chart using google spreadsheet. I just want to ask how I can put data labels (just like in Excel) to show the value of each bar. Is there a way to do that without using a script? Thank you
If you click on the chart itself, or during creation of the chart, you will be greeted with the "Chart Editor" window. In the top of the window there will be three tabs, from left to right: Recommendations, Chart Type, Customization. Under the Customization Tab if you scroll down to the very bottom, in between the "Point Shape" drop down menu and the "Error Bars" drop down menu, there is a drop down menu named "Data Labels" simple change the default of "none" to "Value" and wha-la labels.
To get labels for both X and Y coordinates simply scroll up to the "Axis" drop down menu (this is still under the customization tab) and switch the Axis from Horizontal to Vertical, or vise versa and repeat the above steps.
I have created a List view control with View = Icon / List, with LVS_EX_CHECKBOXES enabled.
And the checkboxes overlap with the items text, so I am wondering how could I create a owner drawn list view with checkboxes ?
I have seen that one has to process LVN_ITEMCHANGED notitication to test if an item has been checked.
How does this apply when the checkbox itself gets owner drawn, how do I approach this problem.
How Do I manage the events, the checkbox checking and unchecking while drawing my own, do I have to implement the checking routines myself or do I get something from the window? A message or something? While drawing my own checkbox how do I differentiate between a click on the item and a click on the checkbox, do I have to check the coordinates of the cursor when the click occured? how do I do this.
THis is with view= icon, it shows ok with view=list