In this article, we determine the thermodynamical properties of the anharmonic canonical ensemble within the cosmic-string framework. We use the ordinary statistics and the q-deformed superstatistics for this study. The q-deformed superstatistics is derived by modifying the probability density in the original superstatistics. The Schrödinger equation is rewritten in the cosmic-string framework. Next, the anharmonic oscillator is investigated in detail. The wave function and the energy spectrum of the considered system are derived using the bi-confluent Heun functions. In the next step, we first determine the thermodynamical properties for the canonical ensemble of the anharmonic oscillator in the cosmic-string framework using the ordinary statistics approach. Also, these quantities have been obtained in the qdeformed superstatistics. For vanishing deformation parameter, the ordinary results are obtained.