Group A Column Series with WPF Charting Toolkit - c#

I got a Column Series that looks like this:
As you can see i got lots of columns, that I need to group somehow. A group consists out of 1 shuttle and for each shuttle there are 5 nests. My preferred form of grouping would be a, the nest written underneath each column and the shuttle again underneath. Between groups there should be a vertical line or some space to separate them. If this isn't possible I would greatly appreciate any other suggestions.

create a datatable with a column for each nest( so total five columns) , add five column series to the chart , DependentValueBinding to each column name, set ItemsSource to datatable( same for each column series).
Let me know if you want the code.

Related

UWP - Matrix With Grid

I first would like to say that I am fairly new to UWP, and my experience with Android is probably leading some some assumptions on my end. There may be a better way about this, but so far I have been trying to use the Grid class, but it doesn't seem to work in a way that I would expect.
Basic Idea
I am trying to create a UWP application with the ability of organizing elements in a matrix, where each row and column represents some category, and whatever element that is within both row and column categories is placed in that cell. One or more elements can be listed in each matrix coordinate. An image for reference is below:
To give a more clearer/specific example, let's say the Elements were Employees, rows were Teams, and columns were disciplines (Testing, Dev, Management)
Comparing different category-types can be useful for displaying information, but this will have greater importance beyond just names, so this is only a simplified example. Also, as shown in the example, the number of rows and columns is determined by the number of categories there are for each respectively (e.g. # rows = # teams and # columns = # disciplines).
I don't have any code to show, simply because this isn't so much an error problem as it is a conceptual problem.
My Questions
How would I be able to filter what elements are bound to a cell by their Row/Column? Is this even possible?
i.e. populating the cells of the matrix with elements that occupy both the corresponding row's and column's category.
How do I bind columns and rows to their respective list of categories?
e.g. whenever I add another Column Category, a new empty column will be generated.
I appreciate your help and time!
For your scenario, the better way is using DataGrid to replace.
i.e. populating the cells of the matrix with elements that occupy both the corresponding row's and column's category.
You could use binding way to specific current element in which column and row, but you need to calculate before preparing data source for Grid panel.
whenever I add another Column Category, a new empty column will be generated.
If you use DataGrid, it will generate Column base on your item's new filed. Here is code sample that your could refer.

Visual Studio Report - Show a table in two rows

i have a question: is there any way to show a single row of a table in two rows? The problem is that my table has too many fields and is too wide. So, I think that maybe you can split each row in the table to make it in a row. For example (my idea in Excel, just for example):
Complete table
...and my idea
I hope for your help!
You can:
add a Tablix with 4 columns and without header
add a Rectangle in every detail cell
add 4 TextBox for every Rectangle: use 2 TextBox as labels and two TextBox as values
increase Rectangle height in order to put spaces between every rows
Once you perform this operation for value 1 and 5, you can copy and paste Rectangle in the other 3 cells and simply change label and value.

RDLC group by multiple column in table

I am using rdlc report and using table in it.I want to make following desingn in rdlc but when i drag database column in row group table properties it shows columns on left side.I want Eng Crs Name and Arabic Crs are parent group and Eng Gender and Arb Gender are child group.Where Eng is english and Arb is Arabic.Both are same columns but different language.How can i achieve this following design.
Eng CrsName EngGender Students ArabicGender ArbCrs
engname1 EngM 2 ArabicM arbn1
EngF 3 ArabicF
engname2 EngM 4 ArabicM arbn2
EngF 5 ArabicF
The most common way to have parent and children columns is by using the Matrix component. I suggest you give it try on your own first, it should be self explanatory.
If the Matrix does not meet your desires, there is another easy way to group data in an RDLC Report by using the List component.
You can add a table with just the table headers at the top, so it won't be repeated. And then drag the parent (column on which you wish to group) to a TextBox inside the Rectangle of the List. Make sure you group the List on that column.
Next you can add a Table with the children data into the rectangle. If there are multiple children, this table will generate multiple rows inside the rectangle. This rectangle will then repeat for every parent item, grouping everything nicely. You can also add lines to represent columns as you see fit.
I hope this helps you a little, if not you should describe your datasource in a bit more detail and I might be able to give a more accurate solution.
Here is a more visual representation of what i tried to explain with words:

Automatically add an Order column into tablix in Local Report?

I can populate my own Order column in the DataSource and pass this DataSource to Tablix. But if there is a way to automatically an Order column right in Tablix at design time (such as using some variable or expression), it would be better. Here is what I want:
Order | Column 1 | Column 2
1
2
3
...
The Order column can be added at design time easily, but how to populate it with ordinal numbers when refreshing report (of course, I don't want to populate it from data source). I want some way to populate it via expression or something like that right in Local Report designer.
Your help would be highly appreciated!
Thank you very much in advance!
Yes,
Put expression =RowNumber(nothing) in Order column.
and if you want to show row number differently for group try =RowNumber("GroupName1")
=RowNumber("Group1")
it's not working with me for group numbers what i can do

Change Group By column order in ReportViewer

I have a rdlc where I'm building a report.
I'm using a tablix grouping by a field of the tablix dataset, like the following:
When I fill the report with data and refresh it, it comes out like this:
Now, I want the first column(wich has the group by by the field "nome_terr") appear not in first place, but by second. The first column has to be "territorio_emp". If it was a normal column, I'd just move it, but being the Group By column I don't know how to do this.
Ideas?
Thank you.
If you know that your Territorio_Emp data is 1-1 related to your Nome_Terr column, you can just group by Territorio_Emp first, then by the Nome_Terr column.
If thats not possible, you can keep it the way it is, but make the width of the group by column 0, so its basically hidden. Just drag the column header separators.

Categories

Resources