Skip to content

Commit 0e6adcd

Browse files
author
bvenn
committed
add consolas font
fix typo
1 parent ba49bc9 commit 0e6adcd

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/FSharp.Plotly/Chart.fs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -573,8 +573,8 @@ type Chart =
573573
|> TraceStyle.TextLabel(?Text=Labels,?Textposition=TextPosition,?Textfont=TextFont)
574574
|> GenericChart.ofTraceObject
575575

576-
/// cretes table out of header sequence and row sequences
577-
static member Table(headerValues, cellValues, ?AlignHeader, ?AlignCells, ?ColumnWidth, ?ColumnOrder, ?ColorHeader, ?ColorCells, ?FontHeader, ?FontCells, ?HeightHeader, ?HeightCells, ?LineHeader, ?LineCells) = //header, cells ) = //,?Name,?Showlegend,?MarkerSymbol,?Color,?Opacity,?Labels,?TextPosition,?TextFont,?Dash,?Width) =
576+
/// creates table out of header sequence and row sequences
577+
static member Table(headerValues, cellValues, ?AlignHeader, ?AlignCells, ?ColumnWidth, ?ColumnOrder, ?ColorHeader, ?ColorCells, ?FontHeader, ?FontCells, ?HeightHeader, ?HeightCells, ?LineHeader, ?LineCells) =
578578
Trace.initTable (
579579

580580
let CellFilling =
@@ -587,11 +587,9 @@ type Chart =
587587
| Some color -> Some (CellColour.init (?Color=ColorHeader))
588588
| Option.None -> Option.None
589589

590-
591590
TraceStyle.Table (
592591
Header = Header.init (headerValues|> Seq.map seq, ?Align=AlignHeader, ?Fill=HeaderFilling, ?Font=FontHeader, ?Height=HeightHeader, ?Line=LineHeader),
593-
Cells =
594-
Cells.init(cellValues |> Seq.transpose, ?Align=AlignCells, ?Fill=CellFilling, ?Font=FontCells, ?Height=HeightCells, ?Line=LineCells),
592+
Cells = Cells.init(cellValues |> Seq.transpose, ?Align=AlignCells, ?Fill=CellFilling, ?Font=FontCells, ?Height=HeightCells, ?Line=LineCells),
595593
?ColumnWidth = ColumnWidth,
596594
?ColumnOrder = ColumnOrder
597595
)

src/FSharp.Plotly/StyleParams.fs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,13 @@ module StyleParam =
210210

211211
/// Names of installed font families
212212
type FontFamily =
213-
| Arial | Balto | Courier_New | Droid_Sans | Droid_Serif | Droid_Sans_Mono | Gravitas_One | Old_Standard_TT | Open_Sans | Overpass | PT_Sans_Narrow | Raleway | Times_New_Roman
213+
| Arial | Balto | Courier_New | Consolas | Droid_Sans | Droid_Serif | Droid_Sans_Mono | Gravitas_One | Old_Standard_TT | Open_Sans | Overpass | PT_Sans_Narrow | Raleway | Times_New_Roman
214214

215215
static member toString = function
216216
| Arial -> "Arial"
217217
| Balto -> "Balto"
218218
| Courier_New -> "Courier New"
219+
| Consolas -> "Consolas"
219220
| Droid_Sans -> "Droid Sans"
220221
| Droid_Serif -> "Droid Serif"
221222
| Droid_Sans_Mono -> "Droid Sans Mono"

0 commit comments

Comments
 (0)