Is it possible to have different colors for different selected columns in highcharts?
Here's a sketch for what I'm trying to do: http://jsfiddle.net/jZmYW/4/
When selecting a point (column) it should get a specific color. I try to achieve that with setting new data for the selected point.
Visually it leads to the expected result but comes with a JS-error: "Uncaught TypeError: Property 'setState' of object # is not a function".
I also tried to apply the functionality to the series (with setting new data there). That gives a quite similar result where the JS-error is slightly different: "Uncaught TypeError: Property 'firePointEvent' of object # is not a function".
Any ideas?
The problem can be solved by defining a specific select state for each series, see http://jsfiddle.net/jZmYW/5/
Thanks to the highcharts support team for helping here.
Related
I have a Google Sheet in which there are multiple tabs. In one tab, I want to setup a conditional formatting rule to change the font colour of the entries which are referring to another tab in the same spreadsheet.
My goal is that when the references are replaced with updated data, the colour will be representative of the "new" data versus the estimated data (on the other tab).
In my current attempts, all of the "functions" in the conditional page use the evaluated value of the reference, not the reference itself.
Found a solution! Might not be the most elegant but it is working.
When setting up the conditional-formatting, I selected the cells I needed and chose "Custom Formula" and used:
= ISNUMBER(SEARCH("!", FORMULATEXT(C11)) )
I believe it works as the FORUMLATEXT gets the actual link not the data and the (probably not portable) reference to another page always has a ! in it separating the tab-name from the cell.
The issue I was stuck on was that SEARCH raises an error if the thing is not found but returns a number if it is.
So the ISNUMBER() wrapper handles the error by returning 0 on the not-found case but 1 when the character is found in the reference text.
i'm struggling with the Ui-Grid. I am using the grouping option to group my results. This works pretty fine, but in the documentation of this feature Grouping you can find the following statement:
Optionally (and by default) grouped columns are moved to the front of the grid, which provides a more visually pleasing effect. In order to avoid creating a dependency on pinning, this is done by moving the columns themselves as part of the grouping feature, not through use of the pinning feature.
My understanding is, that it would be possible to disable this behavior. But i am not able to find how i can do so.
I want to have an action-column in the front of every entry.
Can anyone tell me how i disable the behavior that the "grouped" columns are always the first in the grid?
Thanks in advance
Found it out by myself:
You need to set the value "moveGroupColumns" to false
This value belongs to the gridOptions object
I am creating a Highstocks graph with multiple line series from an html table using the data module, however if any value in the first row of the table is Null (empty) the chart fails. If I change the empty values to 0 then the chart does then appear. This only happens for the first row, if the following rows contain null values there is not a problem. Does anyone know a solution for this?
It looks like a bug, so I reported that to our developers here: https://github.com/highcharts/highcharts/issues/5336. Thanks
My goal is to have a TGrid with several columns, connected to a TClientDataSet via LiveBindings. One of the columns is of type TProgressColumn.
The grid displays the data, but the progress bar column shows nothing (i.e. 0% progress).
The TProgressColumn is connected to a field of type ftInteger. The values in this field are between 0 and 100.
I've tried with ftSingle, but with no luck.
I set the type of the column to be TProgressColumn via ColumnStyle property, available under TLinkGridToDataSourceBindSourceDB/Columns.
The strange thing is that when I use TPrototypeBindSource to generate values - the TProgressColumn works, but only for ftUInteger values. It fails for ftInteger generators.
Here is a little demo (Delphi XE7):
When I put a breakpoint in TProgressCell.DrawCell() and step over the two conditions for Value.IsOrdinal and Value.IsType are skipped and ClampValue receives a value "Min" which is 0.
There seems to be something wrong with the value, passed to the function.
Is there something special when working with TProgressColumn? Do I need to use CustomFormat, CustomParse in TLinkGridToDataSourceColumn?
Is that a bug or I miss something?
UPDATE:
Thanks to "nompa" the mystery was solved!
In fact "asInteger" is the well known property of the TField class i.e.:
someDataSet.fieldByName('myFieldName').asInteger
In CustomFormat property you can get access to many things, including self.asInteger properties.
More information here:
Using Custom Format and Parse Expressions in LiveBindings
Using binding expressions in the CustomFormat property of a TLinkPropertyToField component
Formatting your Fields
How to treat an Integer field as a Boolean?
The value is string by default, not matter is a integer field. In property CustomFormat write AsInteger.
The value will be take as integer and the progress now is visible.
I have a parent report that feeds one of the field values into a subreport. But the problem is that there this field value can include multiple records. For simplicity, assume that this field value is called color, where possible values might be orange, red, and green. I need to pass all of these value to the subreport, not just one. I have tried passing the values this way into the Color parameter of the subreport:
=Fields!Color.Value
But this doesn't work and gives me an error. I have also tried:
=join(Fields!Color.Value,",")
This also gives me an error on the subreport
I have also tried both of the above as an expression in a textbox in the parent report and I get #Error displayed on the parent report. I was able to successfully get just the first value to appear by using a similar expression and the First function. But I am not able to get all of the values to display in this textbox on the parent report? how can I do this or at least pass all of the values to this subreport?
The easy solution is if Color is already a parameter - I would pass this expression in the subreport:
=Parameters!Color.Value
If Color is not a parameter, I would add a column to the driving dataset in the parent report using a SELECT ... FOR XML to concatenate the relevant Color values together. Then you can pass that field to the subreport.