Crystal Reports Population Pyramid - vb.net

I am trying to create a population pyramid almost exactly like the one in this question on the SAP forums but I am completely stumped as to how that's done. I'm working in an MVC4 environment and all my data is in a flat model. I've managed to pull the data in as .NET objects no problem, it's just formatting the chart that I am having trouble with. I am using Crystal Reports for Visual Studio 2010 and so far I have managed to create a pyramid that looks like this
(This currently has only two ages)
All I need is for the negative and positive sides to line up for each age, like the picture I linked to at the start of the post, but I can't work out how. I assume it displays like this because each age/gender combination is its own .NET object e.g. 'age_0_to_5_male_percent' and 'age_0_to_5_female_percent' so it treats each as its own row. Does anyone know how to do this? If you need more info please let me know.

Ok, so I ended up doing this with two bar charts and two datasets, one using the standard values and the other using calculated negative values (therefore forcing the chart to draw right to left). I then manually labelled and aligned everything and put the two bar charts 'back to back' to give it the effect of a population pyramid.
It was a lot of work but it was the only way I could work out how to do it.
The only problem that remained was that the labels on the left hand side displayed the negative values.

Related

Looker cannot adjust spacing on visual

I have been unable to find a way to lock in the spacing of columns in a visualization in Looker.
Every time either in dev mode or not or when editing the dashboard if I adjust the size of the columns they will not stay that way when saving the dashboard. For example this is what it looks like where the name section is spaced way out.
Is there a way to lock in the spacing of column within looker visuals?
I am getting this:
I want this:
Mike, you can also hard code the width for each column in the Edit section of the table chart:
Of coarse after posting a question on this I finally stumbled onto the option to freeze columns in the edit window. So instead of deleting my post I will just put my findings here so that if someone happens to have this problem they can find the answer here.
In the visualization edit window you can select the 3 vertical dots next to a column and freeze the column size. This works for all columns individually.
Hi there this is a known issue in Looker dashboards according to Looker support. The way to fix this is to adjust the fields width manually with your cursor in the Look before the visualization gets into Looker. Not ideal but it works.

User input range for XY graph

I'm a beginner user of labview so bear with me, please. I'm working on a project that takes a data text file with columns and rows as an input. I have the project set up so far to take the data from that file and display it in an XY graph.
I want to add a feature where the user inputs a set of values that represent a range in the x-scale. The program should take those two values and make a new graph (or use the old one, that works too) with the proper scale.
I greatly appreciate your time and help .
Thanks
Edit :
A snippet of the txt file.
The red arrow shows what I tried to use from the help section of labview. Yet I have little to no idea on how to integrate it into my diagram or vet if its the right tool to use.
These numeric values input in the front panel is what I thought could work, but I'm all ears to any suggestions.
You already found the correct property node value :)
You have to connect a minimum and a maximum value to the property node. If you click on the function on the node, you can select the min and max option.
I made this little example for you to see what you need to do.
Property nodes are in genereal very useful as you can set and change so many settings programatically.
A nice feature of LabVIEW: You can drag&drop .png pictures in your Block Diagram. So if you want to test my VI-Snippet, just drag&drop it :)
I hope that I could help you, feel free to ask if you have any more questions.

XAML Table with sorting by column clicking in C++ UWP App - design and binding problems

I'm just beginning to build a Universal Windows Platform (UWP) C++ app using VS2015. I've worked in Android before and in .NET, but not UWP (and before you suggest using .NET, I'm using this as a project to get more C++ experience). I'm trying to add a screen to the app that will basically have a table with data that can be sorted by clicking on the corresponding column (one click for ascending, another to reverse. Click a different column header to sort by it instead).
Searching for help on this is a mass of craziness however. Half of the results recommend gridview but when I try to implement them parts of gridview turn out to be unavailable in the UWP platform and I can't seem to make it clickable. Others recommend listview but I want to have multiple columns that get sorted together on clicking of one, and keeping them in sync seems like it could get complicated. There are a variety of other options but I'm getting lost in the mix, particularly when some are then unavailable for UWP and MSFT seems to often have out of date documentation.
I'm also new to this XAML/binding approach and a bit lost with it. With an Android app version of this application I had an sqlite database from which I pulled a table that could be displayed to the screen. I was planning on a similar approach here but in that case what do I bind to? Do I query the database, build a table in memory, and then bind to that? That seems clunky and problematic if columns have different data types. And if gridview doesn't work, in what do I then display it?
That's a kind of vague and wide question I know, but this seems to be one of those instances where further research makes me more lost rather than bringing clarity so after a few hours of searching I thought I'd just ask for advice. This seems like it should be such a simple task that I must be doing something wrong. Any recommendations you have are most welcome!
There is no Control as you said in UWP.
Also it seems the data grid control to display data in a table is that you want. Please refer the DataGrid in this link: https://github.com/MyToolkit/MyToolkit/wiki/DataGrid. When we click the corresponding column the column can be changed.
We should be able to bind the date to the ItemsSource of the DataGrid and set the head name to DataGridTextColumn.
There is a sample for it, you should be able to see it in https://github.com/MyToolkit/MyToolkit/tree/master/src/SampleUwpApp.

Customized List View in visual studio 2013 (visual basic)

I'm new to the vb.net programming and I'm facing an annoying problem. I'm pretty sure that over the net you can find the solution, but I'm not able to probably because I don't even know the right words to be written.
My goal is to have a listview that have for each row 3 columns, the first and the last are just icons, the one in the middle contains two lines, the upper one is a label, the lower one is a progress bar.
I just did it for the mobile version of my app, and in android it is very easy, just a few XML to be done and some coding...is there something similar that can be done in vb.net?
thank you all for help
Cristiano

Position of PictureBoxes in form design window do not correspond to their position during runtime

EDIT: I realized that I didn't tag this properly - I should have included vb.net as a tag, on the grounds that there could be a code based solution. Note, that no changes to the resolution are made in my source code.
UPDATE: When the program starts execution, the left coordinate for each PictureBox is multiplied by ~0.376, whilst the top coordinate for each PictureBox.Top is multiplied by ~0.418 . This "down-scaling" applies to all picture boxes. The source code I have is incredibly rudimentary and cannot be responsible for this. I also looked at another project and I still face the same error. A simple but poor fix would be to divide each coordinate by the corresponding values mentioned above.
In order to show you the issue I'm facing, please look at the images below. Compare this image, where each PictureBox (i.e. a snake, set of arrows, etc.) has been placed so that they line up with a feature of the background image:
To this image, where the PictureBox elements are bunched together. Their positions have been "down-scaled" closer to the origin of the form (note that all the elements are transforming horizontally during runtime, which is why the elements are in the top right corner):
In the solution I was given (developed in VS 2010 I believe), the position of each PictureBox goes beyond the background image as shown:
It is clear that each picture box has been placed in an organized fashion. During execution, each PictureBox goes to it's intended position (i.e. lines up appropriately with the background image).
Obviously, the original developer of the solution I was given would have not faced the problem I am. The fact that the solution works properly during runtime indicates some kind of error with my instance(s) of VB. Does anyone know of any solutions?
I've came across this question which asks how to change the default resolution for a Windows 8 App and this question which asks why some applications appear differently on different machines, but they pose no clear solutions. I would appreciate any help, since it's holding me back from critical work I must do. Thank you in advance!
I feel a little silly now - I started carrying out a bit more research on VB forms and came came across this Microsoft documentation on form scaling. Realizing that my issue may have been caused by having this scaling automatically carried out, I then found the AutoScaleMode property of my form and changed it from Font to None, which resolved my problem.