liveview-native / liveview-native-swiftui-charts

Swift Charts addon library for LiveView Native
MIT License
3 stars 2 forks source link

Migrate to stylesheets #111

Closed carson-katri closed 5 months ago

carson-katri commented 6 months ago

Depends on https://github.com/liveview-native/liveview-client-swiftui/pull/1203

Here's an example of driving a style with a chart value:

"bar" do
  foregroundStyle(by: .value("Group", attr("group")))
end
<Chart>
  <BarMark
    :for={x <- 1..10}
    x={x} x:label="X" y={x} y:label="Y"
    group={x}
    class="bar"
  />
</Chart>
Screenshot 2023-12-21 at 10 29 25 AM