Forum Discussion
Ivashamagnus
2 years agoFrequent Visitor
How to visualize sleep segments?
Hello! Please tell me by what means in Power Bi I can indicate sleep periods on the chart? I will be glad if you point me in the right direction. Watching tutorial videos doesn't help me. Ex...
- 2 years ago
There is a learning curve with everything, but I found it to be really short with Deneb. For your sample data the code is only this:
{ "data": {"name": "dataset"}, "mark": {"type": "bar"}, "encoding": { "x": { "field": "Date", "type": "nominal" }, "y": { "field": "Start", "type": "temporal" }, "y2": { "field": "End" } } }and the result is this
lbendlin
2 years agoSuper User
There is a learning curve with everything, but I found it to be really short with Deneb. For your sample data the code is only this:
{
"data": {"name": "dataset"},
"mark": {"type": "bar"},
"encoding": {
"x": {
"field": "Date",
"type": "nominal"
},
"y": {
"field": "Start",
"type": "temporal"
}, "y2": {
"field": "End"
}
}
}
and the result is this
Ivashamagnus
2 years agoFrequent Visitor
That's what I want, it's fantastic! It's like I've touched my dream after 2 months! I'll post the results of my creations here when I do it. I think you helped me a lot lbendlin, thank you!