我正在使用Shiny Shinydashboard . 我的图表是交互式的,并使用highcharter创建 . 我有多个共享相同x轴(日期)的图表 . 我想链接图表,所以十字准线位置在所有图表上都是相同的x轴,并在链接的所有图表上移动 .
我在Highcharts上找到了这个JS片段,但是不可能与Highcharter一起使用 . https://www.highcharts.com/demo/synchronized-charts .
Snippet showing the three highcharts I want to link
ui.R
tabItem(tabName = 'namespace',
#' graph for message trends
fluidRow(
box(
title = 'Active Namespaces',
highchartOutput('active_namespace_graph', height = '300'),
width = 4
),
box(
title = 'Channel Volume',
highchartOutput('message_volume_graph', height = '300'),
width = 4
),
box(
title = 'Campaigns Created',
highchartOutput('campaign_count_graph', height = '300'),
width = 4
)
)
Charts