Reverse-engineering bar charts using neural networks