(chart, size)
| 221 | } |
| 222 | |
| 223 | function determineYAlign(chart, size) { |
| 224 | const {y, height} = size; |
| 225 | |
| 226 | if (y < height / 2) { |
| 227 | return 'top'; |
| 228 | } else if (y > (chart.height - height / 2)) { |
| 229 | return 'bottom'; |
| 230 | } |
| 231 | return 'center'; |
| 232 | } |
| 233 | |
| 234 | function doesNotFitWithAlign(xAlign, chart, options, size) { |
| 235 | const {x, width} = size; |
no outgoing calls
no test coverage detected