[Solved] Line chart with categorical values in ggplot2?

1) The issue is that sales_clean$Year is a factor. 2) ggplot interprit your x-value as categorical, y-value as continous and aggregated value into the bar plot (instead bar there are lines). Please see the simulation: library(ggplot2) set.seed(123) sales_clean <- data.frame(Year = rep(factor(2014:2018), 1000), Net_Rev = abs(rnorm(5000))) plotLine <- ggplot(sales_clean, aes(Year, Net_Rev, na.rm = FALSE)) plotLine … Read more

[Solved] iOS Charts, wavy lines

Please check this : let ds1 = LineChartDataSet(values: yse1, label: “Hello”) ds1.colors = [NSUIColor.red] ds1.drawCirclesEnabled = false ds1.drawValuesEnabled = false ds1.mode = .cubicBezier // add this line data.addDataSet(ds1) let ds2 = LineChartDataSet(values: yse2, label: “World”) ds2.colors = [NSUIColor.blue] ds2.drawCirclesEnabled = false ds2.drawValuesEnabled = false ds2.mode = .cubicBezier // add this line data.addDataSet(ds2) solved iOS Charts, … Read more