(chart, size)
| 257 | } |
| 258 | |
| 259 | function determineYAlign(chart, size) { |
| 260 | const {y, height} = size; |
| 261 | |
| 262 | if (y < height / 2) { |
| 263 | return 'top'; |
| 264 | } else if (y > (chart.height - height / 2)) { |
| 265 | return 'bottom'; |
| 266 | } |
| 267 | return 'center'; |
| 268 | } |
| 269 | |
| 270 | function doesNotFitWithAlign(xAlign, chart, options, size) { |
| 271 | const {x, width} = size; |
no outgoing calls
no test coverage detected