hrbrmstr / taucharts

:bar_chart: An R htmlwidget interface to the TauCharts javascript library
http://rpubs.com/hrbrmstr/taucharts
Other
65 stars 10 forks source link

color functions not working for me with line charts #34

Closed smach closed 9 years ago

smach commented 9 years ago

Always possible it's user error, but using your sample line_dat data here

line_dat <- structure(list(type = c("us", "us", "us", "us", "us", "us", "bug", 
"bug", "bug", "bug", "bug"), count = c(0L, 10L, 15L, 12L, 16L, 
13L, 21L, 19L, 23L, 26L, 23L), date = c("12-2013", "01-2014", 
"02-2014", "03-2014", "04-2014", "05-2014", "01-2014", "02-2014", 
"03-2014", "04-2014", "05-2014")), .Names = c("type", "count", 
"date"), class = "data.frame", row.names = c(NA, 11L))

this works for me

tauchart(line_dat) %>% 
  tau_point("date", "count", "type") %>% 
  tau_color_manual(c("red", "blue"))

But this doesn't

tauchart(line_dat) %>% 
  tau_line("date", "count", "type") %>% 
  tau_color_manual(c("red", "blue"))

Yet this does

tauchart(line_dat) %>% 
  tau_line("date", "count", "type")
smach commented 9 years ago

(With 7 lines on a chart, the colors appeared to start repeating, hence the desire to set them some other way)

hrbrmstr commented 9 years ago

completely understandable :-) 0.3.3.9001 (just pushed to gh dev) shld fix it.

smach commented 9 years ago

Installed the dev version and I've got my line colors. Thanks!!!

On Mon, Aug 10, 2015 at 8:19 PM, boB Rudis notifications@github.com wrote:

completely understandable :-) 0.3.3.9001 (just pushed to gh dev) shld fix it.

— Reply to this email directly or view it on GitHub https://github.com/hrbrmstr/taucharts/issues/34#issuecomment-129654845.