I'm trying to plot temperature data on a LineMark chart. My array of chartDATETIME values are formatted to the timezone at the coordinates that the user selects. I know those values are correct because I've printed them.
For some reason, when I plot the temperature and date time values on a LineMark, the chart changes my datetimes to my local timezone. I can't figure out how to stop the chart from doing this.
Chart(viewModel.weatherArray, id: \.chartDATETIME) {
LineMark(
x: .value("Date", $0.chartDATETIME, unit: .hour),
y: .value("Temp", $0.chartTMP)
)
.lineStyle(StrokeStyle(lineWidth: lineWidth))
.foregroundStyle(chartColor.gradient)
.interpolationMethod(interpolationMethod.mode)
}