Quote from
mazzu001 on January 24, 2020, 3:14 pm
I put this in tips and tricks already but I don't know if a lot of people look there. So I hope its ok that I also put it here. I know I would have loved something like this when I first started Neobook.
I found an older project where I created a dynamic bar graph using only Visual Neo. I added some notes to it and thought I would share it. I hope someone might find it useful. It is only partially dynamic, in you can enter or use any numbers you want and the graph will adapt. But the number of bars (8) is static. But you can adjust the rectangles (bars) plus or minus and adjust the code accordingly to suite your needs.

I added a button to put in random numbers to test it out easier. Also I added some code to handle those times when the bar was too small and the number stayed hidden and instead displays above the bar rather than inside of it. It is calculated percentages so the height of the container doesn't matter. However the width is not dynamic. I also added some mouse over features when you mouse over the index items the bars outlines change respectively.
All of the code is in the Create Graph Button for creating the graph.
Here is the .pub file so you can use this code if you ever need it.
I put this in tips and tricks already but I don't know if a lot of people look there. So I hope its ok that I also put it here. I know I would have loved something like this when I first started Neobook.
I found an older project where I created a dynamic bar graph using only Visual Neo. I added some notes to it and thought I would share it. I hope someone might find it useful. It is only partially dynamic, in you can enter or use any numbers you want and the graph will adapt. But the number of bars (8) is static. But you can adjust the rectangles (bars) plus or minus and adjust the code accordingly to suite your needs.

I added a button to put in random numbers to test it out easier. Also I added some code to handle those times when the bar was too small and the number stayed hidden and instead displays above the bar rather than inside of it. It is calculated percentages so the height of the container doesn't matter. However the width is not dynamic. I also added some mouse over features when you mouse over the index items the bars outlines change respectively.
All of the code is in the Create Graph Button for creating the graph.
Here is the .pub file so you can use this code if you ever need it.
Uploaded files:- You need to login to have access to uploads.
luishp, alangonzalez91 and proforma.guyot have reacted to this post.
luishpalangonzalez91proforma.guyot