I have a problem with ag-grid sparklines, in two cases I display data, when I display with more data it goes to the end of the cell, and in the second case when there is less data, the sparkline does not go to the end of the cell.
Does anyone have a solution how to go to the end of the cell? Thanks
Related
Im using DevExtremeREACTIVE grid. Need to fix one row. As I understood from documentations its very easy for columns, but couldn't find anything for rows.
In the picture marked row should be fixed while user scrolling vertically.
i have this problem:
I needed to hide a row in a string grid so i simply did something like:
StringGrid.RowHeights[StringGrid.Row] := 0;
So this basicly sets the row height to 0 and it looks hidden. But after i do this and if i try to scroll i got a "Grid index out of range". If i click on another cell the error doesn't show up after i scroll. So it only shows when i hide it and then scroll directly after hiding a row.
Why does this happen and how can i fix it please?
You are not quite supposed to do that. Instead of making the heights 0 you can simply 'skip' putting the data in the rows you want to hide.
For example, your table is like this:
a b c
d e f
and you want to hide the second row, then you say: RowCount:= RowCount-1 and simply don't display the data in that row.
For this you need a procedure (let's call it RefreshData) which will show the data in the grid, will decide which data rows to show or not and will calculate how many rows the grid should have.
I had a problem where I'd get the grid index out of range error when attempting to modify colcount or rowcount on a stringgrid. I debugged the grid.pas and figured out the error was because I was accidentally setting the ColWidth property of the negative first column to -1 like ColWidth[-1] = -1. That had the effect of modifying some memory of an array that stores the list of widths of each column and the control would act as if the columns and rows did not exist when attempting to add more. Only putting this here because I searched all over the internet to find the answer and there was nothing so maybe someone else will make the same mistake.
Taking a look at the example at: http://dev.sencha.com/deploy/ext-4.0.0/examples/grid/locking-grid.html
The last row at the bottom is "wal-mart". How would I make that bottom row unsortable?
The way it is now, if I sort any column, Wal-mart may potentially move with the sort, and no longer be at the bottom. I want it to stay at the bottom, because I'm going to turn the bottom row into a "totals" row that will add up the values of all the rows above it, so it needs to stay at the bottom.
If the purpose of the row is to provide summary then you can use grid Summary feature and then you don't need to solve the problem of sorting.
I have the following report:
In Excel I'd use something called Freeze Pane below the chart ....this would mean as the user scrolls down, the table will scroll, but the chart would always remain visible.
Is it possible to implement this behavior in RS?
EDIT
Note: the chart and the tablix use different Datasets
Yes, you can get this going with a bit of tweaking.
With Tablix objects, you have the option to fix header rows, i.e. they will stay at the top of the page when scrolling.
You can set this at the Tablix level:
Or at the row level with Advanced Mode set by using the FixedData property:
So what you can do to take advantage of this is to insert a Chart into those repeating Header rows. I tested this with a basic report:
This did succeed in having the Chart scroll with the Tablix, so will fulfil your requirements. One warning - it didn't look good when I did this (overlapping cells and the like), but it was a report with zero formatting so hopefully this will be helpful for you, anyway.
Edit after comment:
In my simple report example I added a new Dataset to the report, and pointed the embedded Chart to this new Dataset - this didn't work, as every time I did this it would always revert to the old Dataset (i.e. the one specified at the Tablix level).
However, what you can do instead is use a Subreport, which contains the required Chart, and embed this Subreport in the Tablix header. I just tried it now and it worked as required; the Chart using the second Dataset was fine and it scrolled with the Tablix as required.
So it's still a viable option with multiple Datasets, you just need the extra step of using a Subreport:
New report:
Subreport:
In my program I need to display a JFreeChart.
I'm adding, over time, series to that JFreeChart.
I'm having a tree who allows me to switch between different item and displaying them in the chart. What i do is that I update the TimeSeriesCollection. (Update or reset completely with new data)
But I need in a specific case to add data to one of my item, thus displaying the chart with the new data, and at the same time, the user might change item and the program still needs to update my 1st item while displaying the second.
Which mean i have a graph of "Item1" to which I'm adding data over time, and while doing that, i want to be able to switch to an "Item2" and displaying that item in the graph (while still adding my data to "item1")
I tough about using an other TimeSeriesCollections to wich i could put the new data while displaying the first TimeSeriesCollections. But i can't seem to find a way to switch between 2 TimeSeriesCollection.. like a myJFreeChart.setTimeSeriesCollection(TimesSeriesCollections tsc)
Any ideas?
As shown here, create your chart with a TimeSeriesCollection. As long as you have distinct TimeSeries instances, you can use removeSeries() and addSeries() to swap them as required. The ChangeListener will be adjusted accordingly. You can still add data to either series.
If you're still having problems, edit your question to include an sscce.