Scott Joplin's "The Entertainer" (1902) is in C major, 2/4 time. It is primarily diatonic (uses notes of the C major scale) but incorporates occasional chromatic notes—notably F♯ and G♯—for color, tension, and a sense of forward motion.
The piece does not "use a chromatic scale" as a structural basis; rather, it uses selective chromaticism within a diatonic ragtime framework—typical of Joplin's sophisticated harmonic palette.