Safe Haskell | None |
---|---|
Language | Haskell2010 |
ProductMixAuction.Graphics.Scatter
- scatterBidsChart :: (ToField bid, Ord bid) => Env -> [Bidder bid] -> BidderAllocMap bid -> Maybe Plotly
- stackedBidsChart :: (Ord bid, ToField bid) => Env -> [Bidder bid] -> Map (BidderName, bid) (Map Good Units) -> Plotly
- type StackedPoint = ScatterPoint () Color
- type BidPoint = ScatterPoint Double ()
- data ScatterPoint z c = ScatterPoint {}
- sp_label :: forall z c. Lens' (ScatterPoint z c) (Maybe Text)
- sp_size :: forall z c. Lens' (ScatterPoint z c) Double
- sp_x :: forall z c. Lens' (ScatterPoint z c) Double
- sp_y :: forall z c. Lens' (ScatterPoint z c) Double
- sp_z :: forall z c z. Lens (ScatterPoint z c) (ScatterPoint z c) z z
- sp_colour :: forall z c c. Lens (ScatterPoint z c) (ScatterPoint z c) c c
- sp_symbol :: forall z c. Lens' (ScatterPoint z c) Symbol
Documentation
scatterBidsChart :: (ToField bid, Ord bid) => Env -> [Bidder bid] -> BidderAllocMap bid -> Maybe Plotly Source #
Plot a scatter chart of the bids, provided the auction has two or three goods.
stackedBidsChart :: (Ord bid, ToField bid) => Env -> [Bidder bid] -> Map (BidderName, bid) (Map Good Units) -> Plotly Source #
Plot a stacked column chart of the bids.
type StackedPoint = ScatterPoint () Color Source #
type BidPoint = ScatterPoint Double () Source #
data ScatterPoint z c Source #
Constructors
ScatterPoint | |
sp_label :: forall z c. Lens' (ScatterPoint z c) (Maybe Text) Source #
sp_size :: forall z c. Lens' (ScatterPoint z c) Double Source #
sp_x :: forall z c. Lens' (ScatterPoint z c) Double Source #
sp_y :: forall z c. Lens' (ScatterPoint z c) Double Source #
sp_z :: forall z c z. Lens (ScatterPoint z c) (ScatterPoint z c) z z Source #
sp_colour :: forall z c c. Lens (ScatterPoint z c) (ScatterPoint z c) c c Source #
sp_symbol :: forall z c. Lens' (ScatterPoint z c) Symbol Source #