Democratic presidential candidate Hillary Clinton has canceled a campaign trip to California because of her diagnosis of pneumonia.