Hello everyone,
I need to draw a line base on data I input direct on the screen.
Ex: I have 5 input cell with value number like 3, 5, 7, 1 ,9
And I want to make a multi-line which reflex the value of input cell.
How I can make it happen ?
Thank you in advance,
Thien
Solved! Go to Solution.
Do you mean like this?
If so, you can use Line chart control to get this. you need to format the input cell into a table and set it to Items property.
If you want to get a clear line, set the Grid style to None, and delete Chart Title and Serial Label, then it will be a perfect broken line.
Sik
This example will give you what you're after.
"Test1" & Char(10) & "Test2"
So you would want this:
TextInput1.Text & Char(10) & TextInput2.Text & Char(10) & TextInput3.Text
...etc
---
If this answered your question, please click "Accept Solution". If this helped, please Thumbs Up.
Hello,
Thank you for reply.
Would you please more specific, this answer pretty high lever for me 🙂
Thanks
Thien
Solution of @EricLott works and actually is very useful.
For it to work, we would only add one more thing:
If it is TextInput, make sure Mode is set to Multiline
For Label, it should just work anyway.
Yes, I'll be more specific! So what you're try to do is called concatenation. That basically means you want to put a bunch of text together in sequence. In your example, the "text" you want to put in between each text input value is a line break. Since there's no way to explicitly spell out a line break in quotation marks, I used the Char() function. Char() allows us to pass in an ASCII ID and get the ASCII value of that ID. I used 10 since the ASCII ID for a new line is 10. So, what you're seeing is a text value, the & symbol, which just tells PowerApps you want to append more text, then Char(10) which means line break, then another text value, etc..
You can also use Concatenate("String1",Char(10),"String2",Char(10),"String3") which is the same thing, just different syntax.
Also, @poweractivate is correct that a textinput control would need to be set to "Multiline".
Thank you for you reply,
I purpose is to draw the line in diagonal and it look like a chart, not straight line :).
I can only insert the chart which use all items in list
Regards,
Thien
Do you mean like this?
If so, you can use Line chart control to get this. you need to format the input cell into a table and set it to Items property.
If you want to get a clear line, set the Grid style to None, and delete Chart Title and Serial Label, then it will be a perfect broken line.
Sik
Thank you for reply,
Yes, I need that.
I put that code to "Item" attribute of line chart and it work
Thank you very much,
Thien
User | Count |
---|---|
195 | |
123 | |
86 | |
48 | |
40 |
User | Count |
---|---|
281 | |
165 | |
138 | |
80 | |
76 |