-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Description
When running the examples of bar chart, error thrown: Unknown variable: style (line 23)
#import "@preview/ssrn-scribe:0.7.0": *
#import "@preview/cmarker:0.1.2"
#import "../extra.typ": *
#import "@preview/cmarker:0.1.2" // Import markdown directly into Typst
#import "@preview/plotst:0.2.0" :*
#import "@preview/mitex:0.2.4": mitex
#import "../codeblock.typ": codeblock
#let data = ((10, "Monday"), (5, "Tuesday"), (15, "Wednesday"), (9, "Thursday"), (11, "Friday"))
// Create the necessary axes
#let y_axis = axis(values: ("", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday"), location: "left", show_markings: true)
#let x_axis = axis(min: 0, max: 20, step: 2, location: "bottom", helper_lines: true)
// Combine the axes and the data and feed it to the plot render function.
#let pl = plot(axes: (x_axis, y_axis), data: data)
#bar_chart(pl, (100%, 33%), fill: (purple, blue, red, green, yellow), bar_width: 70%, rotated: true)
#bibliography("../bib.bib")
While this error thrown, there are also four same warnings:
Within @preview/plotst:0.2.0 this problem occured:
comparing strings with types is deprecated
What's this about?
Compare with the literal type instead
This comparison will always return false in future Typst releases
Metadata
Metadata
Assignees
Labels
No labels