(xaxes, yaxes)
| 33 | } |
| 34 | |
| 35 | function getMockGraphInfo(xaxes, yaxes) { |
| 36 | return { |
| 37 | _fullLayout: { |
| 38 | _uid: '6ea6a7', |
| 39 | dragmode: 'zoom', |
| 40 | _paperdiv: d3Select(getMockContainerTree()), |
| 41 | _modebardiv: d3Select(getMockModeBarTree()), |
| 42 | _has: Plots._hasPlotType, |
| 43 | _subplots: {xaxis: xaxes || [], yaxis: yaxes || []}, |
| 44 | modebar: { |
| 45 | add: '', |
| 46 | remove: '', |
| 47 | orientation: 'h', |
| 48 | bgcolor: 'rgba(255,255,255,0.7)', |
| 49 | color: 'rgba(0, 31, 95, 0.3)', |
| 50 | activecolor: 'rgba(0, 31, 95, 1)' |
| 51 | } |
| 52 | }, |
| 53 | _fullData: [], |
| 54 | _context: { |
| 55 | displaylogo: true, |
| 56 | showSendToCloud: false, |
| 57 | showEditInChartStudio: false, |
| 58 | displayModeBar: true, |
| 59 | modeBarButtonsToRemove: [], |
| 60 | modeBarButtonsToAdd: [], |
| 61 | locale: 'en', |
| 62 | locales: {} |
| 63 | } |
| 64 | }; |
| 65 | } |
| 66 | |
| 67 | function countGroups(modeBar) { |
| 68 | return d3Select(modeBar.element).selectAll('div.modebar-group').size(); |
no test coverage detected
searching dependent graphs…