apexcharter/search.json

2 lines
979 KiB
JSON
Raw Normal View History

[{"path":"https://dreamrs.github.io/apexcharter/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"MIT License","title":"MIT License","text":"Copyright (c) 2020 Victor Perrier Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://dreamrs.github.io/apexcharter/articles/apexcharter.html","id":"bar-charts","dir":"Articles","previous_headings":"","what":"Bar charts","title":"Starting with ApexCharts","text":"Simple bar charts can created : Flipping coordinates can done using type = \"bar\": create dodge bar charts, use aesthetic fill : stacked bar charts, specify option stacked ax_chart :","code":"data(\"mpg\") apex(data = mpg, type = \"column\", mapping = aes(x = manufacturer)) apex(data = mpg, type = \"bar\", mapping = aes(x = manufacturer)) apex(data = mpg, type = \"column\", mapping = aes(x = manufacturer, fill = year)) apex(data = mpg, type = \"column\", mapping = aes(x = manufacturer, fill = year)) %>% ax_chart(stacked = TRUE)"},{"path":"https://dreamrs.github.io/apexcharter/articles/apexcharter.html","id":"line-charts","dir":"Articles","previous_headings":"","what":"Line charts","title":"Starting with ApexCharts","text":"Simple line charts can created (works character, Date POSIXct): represent several lines, use data.frame long format group aesthetic:","code":"data(\"economics\") apex(data = economics, type = \"line\", mapping = aes(x = date, y = uempmed)) data(\"economics_long\") apex(data = economics_long, type = \"line\", mapping = aes(x = date, y = value01, group = variable)) %>% ax_yaxis(decimalsInFloat = 2) # number of decimals to keep"},{"path":"https://dreamrs.github.io/apexcharter/articles/apexcharter.html","id":"area-charts","dir":"Articles","previous_headings":"","what":"Area charts","title":"Starting with ApexCharts","text":"Create area charts type = \"area\": can create ribbon charts using ymin ymax aesthetics :","code":"data(\"eco2mix\", package = \"apexcharter\") apex(eco2mix, aes(datetime, production, fill = source), type = \"area\") %>% ax_chart(animations = list(enabled = FALSE), stacked = TRUE) %>% ax_stroke(width = 1) %>% ax_fill(opacity = 1, type = \"solid\") %>% ax_tooltip(x = list(format = \"dd MMM, HH:mm\")) %>% ax_yaxis(labels = list(formatter = format_num(\"~\", suffix = \"MW\"))) %>% ax_colors_manual( list( \"bioenergies\" = \"#156956\", \"fuel\" = \"#80549f\", \"coal\" = \"#a68832\", \"solar\" = \"#d66b0d\", \"gas\" = \"#f20809\", \"wind\" = \"#72cbb7\", \"hydraulic\" = \"#2672b0\", \"nuclear\" = \"#e4a701\", \"pumping\" = \"#0e4269\" ) ) %>% ax_labs( title = \"Electricity generation by sector in France\", subtitle = \"Data from \\u00e9CO\\u2082mix\" ) data(\"temperatures\", package = \"apexcharter\") apex( temperatures, aes(x = date, ymin = low, ymax = high), type = \"rangeArea\", serie_name = \"Low/High (2018-2021)\" ) %>% add_line(aes(date, `2023`)) %>% ax_chart(animations = list(enabled = FALSE)) %>% ax_yaxis(tickAmount = 7, labels = list(formatter = format_num(\"~\", suffix = \"°C\"))) %>% ax_colors(c(\"#8485854D\", \"#FF0000\")) %>% ax_stroke(width = c(1, 2)) %>% ax_fill(opacity = 1, type = \"solid\") %>% ax_labs( title = \"Temperatures in 2023 with range from 2018 to 2021\", subtitle = \"Data from ENEDIS\" )"},{"pat