This is a review article of our work on hysteresis, avalanches, and criticality. We provide an extensive introduction to scaling and renormalization-group ideas, and discuss analytical and numerical results for size distributions, correlation functions, magnetization, avalanche durations and average avalanche shapes, and power spectra. We focus here on applications to magnetic Barkhausen noise, and briefly discuss non-magnetic systems with hysteresis and avalanches.